From e52d3ba68fb87f54c8596a0c92d5a105272d91f2 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 27 Sep 2024 11:26:02 +0100 Subject: [PATCH] KE2: Add bugfix from KE1's #17599 --- java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt b/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt index 9065e2548bd..9d734d774fc 100644 --- a/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt +++ b/java/kotlin-extractor2/src/main/kotlin/KotlinFileExtractor.kt @@ -8820,7 +8820,7 @@ OLD: KE1 tw.writeHasLocation(id, locId) // Extract constructor - val unitType = useType(pluginContext.irBuiltIns.unitType) + val unitType = useType(pluginContext.irBuiltIns.unitType, TypeContext.RETURN) tw.writeConstrs(ids.constructor, "", "", unitType.javaResult.id, id, ids.constructor) tw.writeConstrsKotlinType(ids.constructor, unitType.kotlinResult.id) tw.writeHasLocation(ids.constructor, locId)