Report error on non-reified type parameter with recursive bound in typeOf
Instead of throwing an exception. #KT-40173
This commit is contained in:
+6
@@ -672,6 +672,12 @@ public class DiagnosticsTestWithJvmIrBackendGenerated extends AbstractDiagnostic
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonReifiedTypeParameterWithRecursiveBound.kt")
|
||||
public void testNonReifiedTypeParameterWithRecursiveBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/typeOf/nonReifiedTypeParameterWithRecursiveBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendType.kt")
|
||||
public void testSuspendType() throws Exception {
|
||||
|
||||
+6
@@ -660,6 +660,12 @@ public class DiagnosticsTestWithOldJvmBackendGenerated extends AbstractDiagnosti
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJvmBackend/typeOf"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_OLD, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nonReifiedTypeParameterWithRecursiveBound.kt")
|
||||
public void testNonReifiedTypeParameterWithRecursiveBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJvmBackend/typeOf/nonReifiedTypeParameterWithRecursiveBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendType.kt")
|
||||
public void testSuspendType() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user