Merge pull request #17600 from igfoo/igfoo/ke2-constrs

KE2: Add bugfix from KE1's #17599
This commit is contained in:
Ian Lynagh
2024-09-27 12:18:09 +01:00
committed by GitHub

View File

@@ -8819,7 +8819,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)