Skip to content

Commit 3cf7f96

Browse files
committed
Ensure <obinit>'s return type is void not Unit
1 parent af52303 commit 3cf7f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ open class KotlinFileExtractor(
371371
// add method:
372372
val obinitLabel = getObinitLabel(c)
373373
val obinitId = tw.getLabelFor<DbMethod>(obinitLabel)
374-
val returnType = useType(pluginContext.irBuiltIns.unitType)
374+
val returnType = useType(pluginContext.irBuiltIns.unitType, TypeContext.RETURN)
375375
tw.writeMethods(obinitId, "<obinit>", "<obinit>()", returnType.javaResult.id, parentId, obinitId)
376376
tw.writeMethodsKotlinType(obinitId, returnType.kotlinResult.id)
377377

0 commit comments

Comments
 (0)