[FIR] Prohibit referencing type parameters in contracts ...
...if they are not reified or not belong to owner declaration of the contract KT-57911
This commit is contained in:
committed by
Space Team
parent
5a92eb2c67
commit
f8dc8057f0
+6
@@ -37191,6 +37191,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/fromStdlib/check.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contractWithSubstitution.kt")
|
||||
public void testContractWithSubstitution() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/fromStdlib/contractWithSubstitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fromStandardKt.kt")
|
||||
public void testFromStandardKt() throws Exception {
|
||||
|
||||
+6
@@ -37191,6 +37191,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/fromStdlib/check.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("contractWithSubstitution.kt")
|
||||
public void testContractWithSubstitution() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/contracts/fromStdlib/contractWithSubstitution.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fromStandardKt.kt")
|
||||
public void testFromStandardKt() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user