Fix recursion in contract declaration analysis. KT-26386 Fixed
Issue fixed only in old inference
This commit is contained in:
+10
@@ -1209,6 +1209,16 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveContract.kt")
|
||||
public void testRecursiveContract() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/recursiveContract.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveContractCustomContractFunction.kt")
|
||||
public void testRecursiveContractCustomContractFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/recursiveContractCustomContractFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToProperty.kt")
|
||||
public void testReferenceToProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+10
@@ -1209,6 +1209,16 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/notFirstStatement.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveContract.kt")
|
||||
public void testRecursiveContract() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/recursiveContract.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveContractCustomContractFunction.kt")
|
||||
public void testRecursiveContractCustomContractFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/recursiveContractCustomContractFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("referenceToProperty.kt")
|
||||
public void testReferenceToProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.kt");
|
||||
|
||||
Reference in New Issue
Block a user