We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff9e14 commit e2c81dfCopy full SHA for e2c81df
src/Generator/Generators/C/CppTypePrinter.cs
@@ -590,11 +590,12 @@ public override TypePrinterResult VisitMethodDecl(Method method)
590
@class = $"::{method.Namespace.Visit(this)}::";
591
break;
592
default:
593
- return string.Empty;
+ @class = string.Empty;
594
+ break;
595
}
596
597
var @params = string.Join(", ", method.Parameters.Select(p => p.Visit(this)));
- var @const = (method.IsConst ? " const" : string.Empty);
598
+ var @const = method.IsConst ? " const" : string.Empty;
599
var name = method.OperatorKind == CXXOperatorKind.Conversion ||
600
method.OperatorKind == CXXOperatorKind.ExplicitConversion ?
601
$"operator {method.OriginalReturnType.Visit(this)}" :
0 commit comments