Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b601cde

Browse files
smowtonigfoo
authored andcommitted
Extract generic constructor calls
1 parent d4519eb commit b601cde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ open class KotlinFileExtractor(
11531153
type = useType(e.type)
11541154
}
11551155
val locId = tw.getLocation(e)
1156-
val methodId = useFunction<DbConstructor>(e.symbol.owner)
1156+
val methodId = useFunction<DbConstructor>(e.symbol.owner, (e.type as? IrSimpleType)?.arguments)
11571157
tw.writeExprs_newexpr(id, type.javaResult.id, type.kotlinResult.id, parent, idx)
11581158
tw.writeHasLocation(id, locId)
11591159
tw.writeCallableEnclosingExpr(id, callable)

0 commit comments

Comments
 (0)