K1: implement warning for upper bound violated in type alias constructors
Partially implements KT-47473
This commit is contained in:
+6
@@ -39251,6 +39251,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
public void testUpperBoundViolated() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundViolated2.kt")
|
||||
public void testUpperBoundViolated2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
+6
@@ -39251,6 +39251,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
public void testUpperBoundViolated() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("upperBoundViolated2.kt")
|
||||
public void testUpperBoundViolated2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/typealias/upperBoundViolated2.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
|
||||
Reference in New Issue
Block a user