Struct type variables must declared as ref

This commit is contained in:
Volker Berlin 2019-04-20 15:23:53 +02:00
parent 97e3c9616f
commit cc0ba1498d

View File

@ -216,7 +216,13 @@ public class TextModuleWriter extends ModuleWriter {
methodParamNames.add( name );
}
}
methodOutput.append( ' ' ).append( normalizeName( valueType.toString() ) ).append( ')' );
methodOutput.append( ' ' );
if( valueType.getCode() < 0 ) {
methodOutput.append( valueType );
} else {
methodOutput.append( "(ref " ).append( normalizeName( valueType.toString() ) ).append( ')' );
}
methodOutput.append( ')' );
}
/**