Kotlin: Add ability to give more type contexts

This commit is contained in:
Ian Lynagh
2021-11-29 19:49:37 +00:00
parent 6c1439c180
commit ec827d2f0a
2 changed files with 10 additions and 6 deletions

View File

@@ -1018,7 +1018,7 @@ open class KotlinFileExtractor(
) {
for (argIdx in 0 until c.typeArgumentsCount) {
val arg = c.getTypeArgument(argIdx)!!
val argType = useType(arg, false)
val argType = useType(arg, TypeContext.GENERIC_ARGUMENT)
val argId = tw.getFreshIdLabel<DbUnannotatedtypeaccess>()
val mul = if (reverse) -1 else 1
tw.writeExprs_unannotatedtypeaccess(argId, argType.javaResult.id, argType.kotlinResult.id, id, argIdx * mul + startIndex)