diff --git a/src/dev/flang/be/jvm/Types.java b/src/dev/flang/be/jvm/Types.java index 05a4b6d04d..e3443a59c6 100644 --- a/src/dev/flang/be/jvm/Types.java +++ b/src/dev/flang/be/jvm/Types.java @@ -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++) {