Add tests for obsolete codegen issues
#KT-8203 Obsolete #KT-15950 Obsolete
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun box(): String {
|
||||
return if ((arrayOf(1, 2, 3)::get)(1) == 2) "OK" else "Fail"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class X {
|
||||
fun g(x: () -> Boolean = { super.equals(this) }) = x()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (X().g()) "OK" else "Fail: false"
|
||||
}
|
||||
+10
@@ -1766,6 +1766,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayGetIntrinsic.kt")
|
||||
public void testArrayGetIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundJvmFieldInInterfaceCompanion.kt")
|
||||
public void testBoundJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
@@ -8625,6 +8630,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useThisInLambda.kt")
|
||||
public void testUseThisInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+10
@@ -1766,6 +1766,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayGetIntrinsic.kt")
|
||||
public void testArrayGetIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundJvmFieldInInterfaceCompanion.kt")
|
||||
public void testBoundJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
@@ -8625,6 +8630,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useThisInLambda.kt")
|
||||
public void testUseThisInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+10
@@ -1766,6 +1766,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayGetIntrinsic.kt")
|
||||
public void testArrayGetIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundJvmFieldInInterfaceCompanion.kt")
|
||||
public void testBoundJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
@@ -8625,6 +8630,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/superCallCheck.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useThisInLambda.kt")
|
||||
public void testUseThisInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+10
@@ -1311,6 +1311,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayGetIntrinsic.kt")
|
||||
public void testArrayGetIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnit.kt")
|
||||
public void testCoercionToUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt");
|
||||
@@ -6580,6 +6585,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/simpleFromOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useThisInLambda.kt")
|
||||
public void testUseThisInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+10
@@ -1311,6 +1311,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/array.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("arrayGetIntrinsic.kt")
|
||||
public void testArrayGetIntrinsic() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnit.kt")
|
||||
public void testCoercionToUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt");
|
||||
@@ -7625,6 +7630,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/simpleFromOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useThisInLambda.kt")
|
||||
public void testUseThisInLambda() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/defaultArguments/useThisInLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/defaultArguments/constructor")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user