diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt index 59f2d50e8ad..1a7f0ae1eb2 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt @@ -2,7 +2,7 @@ import java.util.AbstractMap import java.util.Collections class A : AbstractMap() { - override fun entrySet(): Set> = Collections.emptySet() + override fun entrySet(): MutableSet> = Collections.emptySet() } fun box(): String { diff --git a/compiler/testData/codegen/boxWithStdlib/reflection/enclosing/kt6368.kt b/compiler/testData/codegen/boxWithStdlib/reflection/enclosing/kt6368.kt index 16d226f3c0d..8547b6a5178 100644 --- a/compiler/testData/codegen/boxWithStdlib/reflection/enclosing/kt6368.kt +++ b/compiler/testData/codegen/boxWithStdlib/reflection/enclosing/kt6368.kt @@ -15,7 +15,7 @@ val a by Delegates.lazy { } fun box(): String { - val r = a["result"] + val r = a["result"]!! // Check that reflection won't fail r.javaClass.getEnclosingMethod().toString()