[NI] Add test for KT-32429

#KT-32429 Can't Reproduce
This commit is contained in:
Dmitriy Novozhilov
2019-12-19 14:51:48 +03:00
parent e730965bc5
commit c94dd2939e
5 changed files with 34 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// !LANGUAGE: +NewInference
// ISSUE: KT-32429
import kotlin.properties.Delegates.observable
class Test {
var test by observable(0) { _, _, _ ->
}
}
fun box(): String = "OK"
@@ -12523,6 +12523,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
}
@TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt")
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
@@ -12523,6 +12523,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
}
@TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt")
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
@@ -11373,6 +11373,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
}
@TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt")
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");
@@ -11373,6 +11373,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/inference/kt10822.kt");
}
@TestMetadata("kt32429.kt")
public void testKt32429() throws Exception {
runTest("compiler/testData/codegen/box/inference/kt32429.kt");
}
@TestMetadata("lastExpressionOfLambdaWithNothingConstraint.kt")
public void testLastExpressionOfLambdaWithNothingConstraint() throws Exception {
runTest("compiler/testData/codegen/box/inference/lastExpressionOfLambdaWithNothingConstraint.kt");