FIR2IR: Fix IAE for case of local override of a method with defaults
It was happening because for MyClass.foo we didn't set overriddenSymbols properly because in ClassMemberGenerator.convertFunctionContent we used incorrect containingFirClass that was pointing to anonymous class instead of MyClass. ^KT-58902 Fixed
This commit is contained in:
committed by
Space Team
parent
b04848d179
commit
c474c54903
@@ -192,7 +192,9 @@ class Fir2IrVisitor(
|
||||
val irClass = classifierStorage.getCachedIrClass(regularClass)?.apply { this.parent = irParent }
|
||||
if (irClass != null) {
|
||||
return conversionScope.withParent(irClass) {
|
||||
memberGenerator.convertClassContent(irClass, regularClass)
|
||||
conversionScope.withContainingFirClass(regularClass) {
|
||||
memberGenerator.convertClassContent(irClass, regularClass)
|
||||
}
|
||||
}
|
||||
}
|
||||
converter.processLocalClassAndNestedClasses(regularClass, irParent)
|
||||
|
||||
+3
-1
@@ -84,7 +84,9 @@ internal class ClassMemberGenerator(
|
||||
val irNestedClass = classifierStorage.getCachedIrClass(declaration)!!
|
||||
irNestedClass.parent = irClass
|
||||
conversionScope.withParent(irNestedClass) {
|
||||
convertClassContent(irNestedClass, declaration)
|
||||
conversionScope.withContainingFirClass(declaration) {
|
||||
convertClassContent(irNestedClass, declaration)
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> declaration.accept(visitor, null)
|
||||
|
||||
+24
@@ -18327,6 +18327,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertEqualsFakeOverride.kt")
|
||||
public void testAssertEqualsFakeOverride() throws Exception {
|
||||
@@ -18513,6 +18525,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
|
||||
+24
@@ -18327,6 +18327,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertEqualsFakeOverride.kt")
|
||||
public void testAssertEqualsFakeOverride() throws Exception {
|
||||
@@ -18513,6 +18525,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// ISSUE: KT-58902
|
||||
|
||||
fun box(): String {
|
||||
open class Outer {
|
||||
open inner class A {
|
||||
open fun foo(x: String, y: String? = null): String = x + (y ?: "K")
|
||||
}
|
||||
}
|
||||
|
||||
val b = object : Outer() {
|
||||
inner class MyClass : A() {
|
||||
override fun foo(x: String, y: String?) = super.foo(x, y)
|
||||
}
|
||||
}
|
||||
|
||||
return b.MyClass().foo("O")
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// ISSUE: KT-58902
|
||||
|
||||
open class Outer {
|
||||
open inner class A {
|
||||
open fun foo(x: String, y: String? = null): String = x + (y ?: "K")
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val b = object : Outer() {
|
||||
inner class MyClass : A() {
|
||||
override fun foo(x: String, y: String?) = super.foo(x, y)
|
||||
}
|
||||
}
|
||||
|
||||
return b.MyClass().foo("O")
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// ISSUE: KT-58902
|
||||
|
||||
fun box(): String {
|
||||
return run {
|
||||
open class A {
|
||||
open fun foo(x: String, y: String? = null): String = x + (y ?: "K")
|
||||
}
|
||||
|
||||
class MyClass : A() {
|
||||
override fun foo(x: String, y: String?) = super.foo(x, y)
|
||||
}
|
||||
|
||||
MyClass()
|
||||
}.foo("O")
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// ISSUE: KT-58902
|
||||
|
||||
open class A {
|
||||
open fun foo(x: String, y: String? = null): String = x + (y ?: "K")
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return run {
|
||||
class MyClass : A() {
|
||||
override fun foo(x: String, y: String?) = super.foo(x, y)
|
||||
}
|
||||
|
||||
MyClass()
|
||||
}.foo("O")
|
||||
}
|
||||
+24
@@ -17589,6 +17589,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ClassBuilder.kt")
|
||||
public void testClassBuilder() throws Exception {
|
||||
@@ -17661,6 +17673,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
|
||||
+24
@@ -18327,6 +18327,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertEqualsFakeOverride.kt")
|
||||
public void testAssertEqualsFakeOverride() throws Exception {
|
||||
@@ -18513,6 +18525,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
|
||||
+24
@@ -18327,6 +18327,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("assertEqualsFakeOverride.kt")
|
||||
public void testAssertEqualsFakeOverride() throws Exception {
|
||||
@@ -18513,6 +18525,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/fir/linkViaSignatures.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
|
||||
+20
@@ -14608,6 +14608,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassBuilder.kt")
|
||||
public void testClassBuilder() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/ClassBuilder.kt");
|
||||
@@ -14668,6 +14678,16 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/fir/KotlinDocumentationProvider.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LookupTags.kt")
|
||||
public void testLookupTags() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/LookupTags.kt");
|
||||
|
||||
+24
@@ -13635,6 +13635,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -13647,6 +13659,18 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -13731,6 +13731,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -13743,6 +13755,18 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -13731,6 +13731,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -13743,6 +13755,18 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -13731,6 +13731,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -13743,6 +13755,18 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -14906,6 +14906,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -14918,6 +14930,18 @@ public class FirNativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTe
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -15256,6 +15256,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -15268,6 +15280,18 @@ public class FirNativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenB
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -14732,6 +14732,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -14744,6 +14756,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
+24
@@ -14907,6 +14907,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
@@ -14919,6 +14931,18 @@ public class NativeCodegenBoxTestNoPLGenerated extends AbstractNativeCodegenBoxT
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
|
||||
Generated
+20
@@ -12183,6 +12183,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/fir"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.WASM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousOverrideWithDefaultInOverridden.kt")
|
||||
public void testAnonymousOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/anonymousOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classCanNotBeCastedToVoid.kt")
|
||||
public void testClassCanNotBeCastedToVoid() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/classCanNotBeCastedToVoid.kt");
|
||||
@@ -12193,6 +12203,16 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/fir/falsePositiveBoundSmartcast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInLocalOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInLocalOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInLocalOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localOverrideWithDefaultInOverridden.kt")
|
||||
public void testLocalOverrideWithDefaultInOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/localOverrideWithDefaultInOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassTypeParameterDeserialization.kt")
|
||||
public void testNestedClassTypeParameterDeserialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/nestedClassTypeParameterDeserialization.kt");
|
||||
|
||||
Reference in New Issue
Block a user