Allow contracts on final non-override members since 1.4
This commit is contained in:
+29
-9
@@ -1189,9 +1189,14 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/callInContractDescription.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractCallSites.kt")
|
||||
public void testContractCallSites() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.kt");
|
||||
@TestMetadata("contractCallSites.1.3.kt")
|
||||
public void testContractCallSites_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractCallSites.1.4.kt")
|
||||
public void testContractCallSites_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyContract.kt")
|
||||
@@ -1234,14 +1239,24 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
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");
|
||||
@TestMetadata("referenceToProperty.1.3.kt")
|
||||
public void testReferenceToProperty_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.kt")
|
||||
public void testTypeReferences() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.kt");
|
||||
@TestMetadata("referenceToProperty.1.4.kt")
|
||||
public void testReferenceToProperty_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.1.3.kt")
|
||||
public void testTypeReferences_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.1.4.kt")
|
||||
public void testTypeReferences_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unlabeledReceiver.kt")
|
||||
@@ -1321,6 +1336,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/compositions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractsOnMembers.kt")
|
||||
public void testContractsOnMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/contractsOnMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deeplyNested.kt")
|
||||
public void testDeeplyNested() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+29
-9
@@ -1189,9 +1189,14 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/callInContractDescription.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractCallSites.kt")
|
||||
public void testContractCallSites() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.kt");
|
||||
@TestMetadata("contractCallSites.1.3.kt")
|
||||
public void testContractCallSites_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractCallSites.1.4.kt")
|
||||
public void testContractCallSites_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/contractCallSites.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyContract.kt")
|
||||
@@ -1234,14 +1239,24 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
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");
|
||||
@TestMetadata("referenceToProperty.1.3.kt")
|
||||
public void testReferenceToProperty_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.kt")
|
||||
public void testTypeReferences() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.kt");
|
||||
@TestMetadata("referenceToProperty.1.4.kt")
|
||||
public void testReferenceToProperty_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/referenceToProperty.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.1.3.kt")
|
||||
public void testTypeReferences_1_3() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.1.3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeReferences.1.4.kt")
|
||||
public void testTypeReferences_1_4() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/typeReferences.1.4.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unlabeledReceiver.kt")
|
||||
@@ -1321,6 +1336,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/compositions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractsOnMembers.kt")
|
||||
public void testContractsOnMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/contractsOnMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deeplyNested.kt")
|
||||
public void testDeeplyNested() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/smartcasts/deeplyNested.kt");
|
||||
|
||||
@@ -4650,6 +4650,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractsOnMembers.kt")
|
||||
public void testContractsOnMembers() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deeplyNestedExpression.kt")
|
||||
public void testDeeplyNestedExpression() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt");
|
||||
|
||||
+5
@@ -4651,6 +4651,11 @@ public class IrLoadJavaTestGenerated extends AbstractIrLoadJavaTest {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractsOnMembers.kt")
|
||||
public void testContractsOnMembers() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deeplyNestedExpression.kt")
|
||||
public void testDeeplyNestedExpression() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt");
|
||||
|
||||
Generated
+5
@@ -4650,6 +4650,11 @@ public class LoadJavaUsingJavacTestGenerated extends AbstractLoadJavaUsingJavacT
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/callsEffect.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("contractsOnMembers.kt")
|
||||
public void testContractsOnMembers() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/contractsOnMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deeplyNestedExpression.kt")
|
||||
public void testDeeplyNestedExpression() throws Exception {
|
||||
runTest("compiler/testData/loadJava/compiledKotlinWithStdlib/contracts/deeplyNestedExpression.kt");
|
||||
|
||||
Reference in New Issue
Block a user