Do not throw assertion on recursion in typealias declaration,
return empty list of descriptors instead, allowing for proper error reporting later. #KT-18344 fixed
This commit is contained in:
Generated
+6
@@ -28653,6 +28653,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasRHS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("boundsViolationRecursive.kt")
|
||||
public void testBoundsViolationRecursive() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/boundsViolationRecursive.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturingTypeParametersFromOuterClass.kt")
|
||||
public void testCapturingTypeParametersFromOuterClass() throws Exception {
|
||||
|
||||
+6
@@ -28557,6 +28557,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/boundsViolationInTypeAliasRHS.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("boundsViolationRecursive.kt")
|
||||
public void testBoundsViolationRecursive() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/typealias/boundsViolationRecursive.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("capturingTypeParametersFromOuterClass.kt")
|
||||
public void testCapturingTypeParametersFromOuterClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user