Skip to content

Commit 2a5b489

Browse files
committed
Kotlin: Fix the return type for lambda constructors
1 parent 08be35f commit 2a5b489

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
@@ -9017,7 +9017,7 @@ open class KotlinFileExtractor(
90179017
tw.writeHasLocation(id, locId)
90189018

90199019
// Extract constructor
9020-
val unitType = useType(pluginContext.irBuiltIns.unitType)
9020+
val unitType = useType(pluginContext.irBuiltIns.unitType, TypeContext.RETURN)
90219021
tw.writeConstrs(ids.constructor, "", "", unitType.javaResult.id, id, ids.constructor)
90229022
tw.writeConstrsKotlinType(ids.constructor, unitType.kotlinResult.id)
90239023
tw.writeHasLocation(ids.constructor, locId)

0 commit comments

Comments
 (0)