Skip to content

Commit

Permalink
Merge pull request #2015 from tokiwa-software/fix_1902
Browse files Browse the repository at this point in the history
JVM: Add support for call target type being unit (Java's void), fix #1902
  • Loading branch information
michaellilltokiwa committed Sep 22, 2023
2 parents 77de0c5 + 1c8af70 commit d84ff1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dev/flang/be/jvm/Types.java
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,11 @@ String descriptor(boolean explicitOuter, int cl, boolean pre)
{
var or = _fuir.clazzOuterRef(cl);
var ot = _fuir.clazzResultClazz(or);
as.append(resultType(ot).descriptor());
var at = resultType(ot);
if (at != PrimitiveType.type_void)
{
as.append(at.descriptor());
}
}
for (var ai = 0; ai < _fuir.clazzArgCount(cl); ai++)
{
Expand Down

0 comments on commit d84ff1b

Please sign in to comment.