FIR: add test for #KT-49438 Obsolete

This commit is contained in:
Mikhail Glukhikh
2022-04-19 11:07:07 +03:00
parent af933b9d3d
commit f65364b191
7 changed files with 32 additions and 0 deletions
@@ -423,6 +423,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/kt435.kt");
}
@Test
@TestMetadata("kt49438.kt")
public void testKt49438() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt49438.kt");
}
@Test
@TestMetadata("kt53.kt")
public void testKt53() throws Exception {
@@ -423,6 +423,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/kt435.kt");
}
@Test
@TestMetadata("kt49438.kt")
public void testKt49438() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt49438.kt");
}
@Test
@TestMetadata("kt53.kt")
public void testKt53() throws Exception {
@@ -423,6 +423,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/kt435.kt");
}
@Test
@TestMetadata("kt49438.kt")
public void testKt49438() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt49438.kt");
}
@Test
@TestMetadata("kt53.kt")
public void testKt53() throws Exception {
+2
View File
@@ -0,0 +1,2 @@
fun <K> foo(x: K) {}
val x = foo<(<!UNRESOLVED_REFERENCE!>unresolved<!>) -> Float> { it.<!UNRESOLVED_REFERENCE!>toFloat<!>() }
+2
View File
@@ -0,0 +1,2 @@
fun <K> foo(x: K) {}
val x = foo<(<!UNRESOLVED_REFERENCE!>unresolved<!>) -> Float> { <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>it<!>.<!DEBUG_INFO_MISSING_UNRESOLVED!>toFloat<!>() }
+4
View File
@@ -0,0 +1,4 @@
package
public val x: kotlin.Unit
public fun </*0*/ K> foo(/*0*/ x: K): kotlin.Unit
@@ -423,6 +423,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/kt435.kt");
}
@Test
@TestMetadata("kt49438.kt")
public void testKt49438() throws Exception {
runTest("compiler/testData/diagnostics/tests/kt49438.kt");
}
@Test
@TestMetadata("kt53.kt")
public void testKt53() throws Exception {