[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:
Dmitriy Novozhilov
2023-04-12 17:44:51 +03:00
committed by Space Team
parent 5a92eb2c67
commit f8dc8057f0
13 changed files with 302 additions and 11 deletions
@@ -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 {
@@ -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 {