mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Always extract constructor return type as unit
This commit is contained in:
committed by
Ian Lynagh
parent
d2e626cbee
commit
44c64f0784
@@ -2010,7 +2010,8 @@ open class KotlinFileExtractor(
|
||||
extractFunction(localFunction, id)
|
||||
|
||||
// Extract constructor
|
||||
tw.writeConstrs(ids.constructor, "", "", ids.type.javaResult.id, ids.type.kotlinResult.id, id, ids.constructor)
|
||||
val unitType = useType(pluginContext.irBuiltIns.unitType)
|
||||
tw.writeConstrs(ids.constructor, "", "", unitType.javaResult.id, unitType.kotlinResult.id, id, ids.constructor)
|
||||
tw.writeHasLocation(ids.constructor, locId)
|
||||
|
||||
// Constructor body
|
||||
|
||||
Reference in New Issue
Block a user