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

Skip to content

Commit b8af2e6

Browse files
smowtonigfoo
authored andcommitted
Extract generic constructor calls
1 parent cfb839a commit b8af2e6

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
@@ -1136,7 +1136,7 @@ open class KotlinFileExtractor(
11361136
type = useType(e.type)
11371137
}
11381138
val locId = tw.getLocation(e)
1139-
val methodId = useFunction<DbConstructor>(e.symbol.owner)
1139+
val methodId = useFunction<DbConstructor>(e.symbol.owner, (e.type as? IrSimpleType)?.arguments)
11401140
tw.writeExprs_newexpr(id, type.javaResult.id, type.kotlinResult.id, parent, idx)
11411141
tw.writeHasLocation(id, locId)
11421142
tw.writeCallableEnclosingExpr(id, callable)

0 commit comments

Comments
 (0)