File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Generator/Generators/CSharp Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2363,20 +2363,20 @@ public override void GenerateMethodSpecifier(Method method,
2363
2363
2364
2364
var functionName = GetMethodIdentifier ( method ) ;
2365
2365
2366
+ var printedType = method . OriginalReturnType . Visit ( TypePrinter ) ;
2367
+
2366
2368
if ( method . IsConstructor || method . IsDestructor )
2367
2369
Write ( "{0}(" , functionName ) ;
2368
2370
else if ( method . ExplicitInterfaceImpl != null )
2369
- Write ( "{0} {1}.{2}(" , method . OriginalReturnType ,
2371
+ Write ( "{0} {1}.{2}(" , printedType ,
2370
2372
method . ExplicitInterfaceImpl . Name , functionName ) ;
2371
2373
else if ( method . OperatorKind == CXXOperatorKind . Conversion ||
2372
2374
method . OperatorKind == CXXOperatorKind . ExplicitConversion )
2373
2375
{
2374
- var printedType = method . OriginalReturnType . Visit ( TypePrinter ) ;
2375
2376
Write ( $ "{ functionName } { printedType } (") ;
2376
2377
}
2377
2378
else
2378
- Write ( "{0} {1}(" , method . OriginalReturnType , functionName ) ;
2379
-
2379
+ Write ( "{0} {1}(" , printedType , functionName ) ;
2380
2380
2381
2381
Write ( FormatMethodParameters ( method . Parameters ) ) ;
2382
2382
You can’t perform that action at this time.
0 commit comments