Merge pull request #10365 from tamasvajk/kotlin-fix-isUnspecialised-2

Kotlin: Fix `isUnspecialised` to handle generic classes inside generic methods
This commit is contained in:
Tamás Vajk
2022-09-09 16:27:19 +02:00
committed by GitHub
14 changed files with 312 additions and 10 deletions

View File

@@ -1455,7 +1455,7 @@ open class KotlinFileExtractor(
extractNewExprForLocalFunction(ids, id, locId, enclosingCallable, enclosingStmt)
} else {
val methodId =
if (extractClassTypeArguments && drType is IrSimpleType && !isUnspecialised(drType)) {
if (extractClassTypeArguments && drType is IrSimpleType && !isUnspecialised(drType, logger)) {
val extractionMethod = if (isFunctionInvoke) {
// For `kotlin.FunctionX` and `kotlin.reflect.KFunctionX` interfaces, we're making sure that we