Do not extract local function containers as anonymous classes

This commit is contained in:
Tamas Vajk
2022-03-09 09:16:43 +01:00
committed by Ian Lynagh
parent 9597932112
commit 2d0bb43efe
11 changed files with 14 additions and 22 deletions

View File

@@ -1038,9 +1038,6 @@ open class KotlinFileExtractor(
val idNewexpr = extractNewExpr(ids.constructor, ids.type, locId, id, -1, enclosingCallable, enclosingStmt)
@Suppress("UNCHECKED_CAST")
tw.writeIsAnonymClass(ids.type.javaResult.id as Label<DbClass>, idNewexpr)
extractTypeAccessRecursive(pluginContext.irBuiltIns.anyType, locId, idNewexpr, -3, enclosingCallable, enclosingStmt)
} else {
// Returns true if type is C<T1, T2, ...> where C is declared `class C<T1, T2, ...> { ... }`