Extract generic constructor calls

This commit is contained in:
Chris Smowton
2021-12-06 17:29:04 +00:00
committed by Ian Lynagh
parent d4519eb1bc
commit b601cdeb8f

View File

@@ -1153,7 +1153,7 @@ open class KotlinFileExtractor(
type = useType(e.type)
}
val locId = tw.getLocation(e)
val methodId = useFunction<DbConstructor>(e.symbol.owner)
val methodId = useFunction<DbConstructor>(e.symbol.owner, (e.type as? IrSimpleType)?.arguments)
tw.writeExprs_newexpr(id, type.javaResult.id, type.kotlinResult.id, parent, idx)
tw.writeHasLocation(id, locId)
tw.writeCallableEnclosingExpr(id, callable)