K1: implement warning for upper bound violated in type alias constructors

Partially implements KT-47473
This commit is contained in:
Mikhail Glukhikh
2022-09-14 16:59:37 +02:00
committed by Space
parent b314672130
commit fb9b1ad0dc
17 changed files with 108 additions and 24 deletions
@@ -39187,6 +39187,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
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