[FIR] Add a test for KT-59233
This commit is contained in:
committed by
Space Team
parent
d4c6e55e0a
commit
79fce56c95
+6
@@ -921,6 +921,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/RecursiveTypeParameterEqualityCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToParameterizedFun.kt")
|
||||
public void testReferenceToParameterizedFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ReserveYield.kt")
|
||||
public void testReserveYield() throws Exception {
|
||||
|
||||
+6
@@ -921,6 +921,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/RecursiveTypeParameterEqualityCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToParameterizedFun.kt")
|
||||
public void testReferenceToParameterizedFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ReserveYield.kt")
|
||||
public void testReserveYield() throws Exception {
|
||||
|
||||
+6
@@ -921,6 +921,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/RecursiveTypeParameterEqualityCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToParameterizedFun.kt")
|
||||
public void testReferenceToParameterizedFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ReserveYield.kt")
|
||||
public void testReserveYield() throws Exception {
|
||||
|
||||
+6
@@ -921,6 +921,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/RecursiveTypeParameterEqualityCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToParameterizedFun.kt")
|
||||
public void testReferenceToParameterizedFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ReserveYield.kt")
|
||||
public void testReserveYield() throws Exception {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
// ISSUE: KT-59233
|
||||
|
||||
fun <T> consume(arg: T) {}
|
||||
|
||||
fun box(): String {
|
||||
val foo = ::consume
|
||||
return "OK"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// ISSUE: KT-59233
|
||||
|
||||
fun <T> consume(arg: T) {}
|
||||
|
||||
fun box(): String {
|
||||
val foo = ::<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>consume<!>
|
||||
return "OK"
|
||||
}
|
||||
Generated
+6
@@ -921,6 +921,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/RecursiveTypeParameterEqualityCheck.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("referenceToParameterizedFun.kt")
|
||||
public void testReferenceToParameterizedFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/referenceToParameterizedFun.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ReserveYield.kt")
|
||||
public void testReserveYield() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user