[FIR] KT-58719: Ensure the compiler resolves to the class
This commit is contained in:
committed by
Space Team
parent
67d51eb7ee
commit
f446fc4154
+6
@@ -447,6 +447,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invisibleClassInsteadOfFun.kt")
|
||||||
|
public void testInvisibleClassInsteadOfFun() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/invisibleClassInsteadOfFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
||||||
public void testInvokeAndRecursiveResolve() throws Exception {
|
public void testInvokeAndRecursiveResolve() throws Exception {
|
||||||
|
|||||||
+6
@@ -447,6 +447,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invisibleClassInsteadOfFun.kt")
|
||||||
|
public void testInvisibleClassInsteadOfFun() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/invisibleClassInsteadOfFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
||||||
public void testInvokeAndRecursiveResolve() throws Exception {
|
public void testInvokeAndRecursiveResolve() throws Exception {
|
||||||
|
|||||||
+6
@@ -447,6 +447,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invisibleClassInsteadOfFun.kt")
|
||||||
|
public void testInvisibleClassInsteadOfFun() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/invisibleClassInsteadOfFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
||||||
public void testInvokeAndRecursiveResolve() throws Exception {
|
public void testInvokeAndRecursiveResolve() throws Exception {
|
||||||
|
|||||||
+6
@@ -447,6 +447,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invisibleClassInsteadOfFun.kt")
|
||||||
|
public void testInvisibleClassInsteadOfFun() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/invisibleClassInsteadOfFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
||||||
public void testInvokeAndRecursiveResolve() throws Exception {
|
public void testInvokeAndRecursiveResolve() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// ISSUE: KT-58719
|
||||||
|
|
||||||
|
// MODULE: a
|
||||||
|
// FILE: pagind/QueryPagingSource.kt
|
||||||
|
|
||||||
|
package pagind
|
||||||
|
|
||||||
|
internal class QueryPagingSource<Key : Any, RowType : Any>
|
||||||
|
|
||||||
|
fun <RowType : Any> QueryPagingSource(randomParam: Int) {}
|
||||||
|
|
||||||
|
// MODULE: b(a)
|
||||||
|
// FILE: Main.kt
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import pagind.<!INVISIBLE_REFERENCE!>QueryPagingSource<!>
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
QueryPagingSource<Int>(10)
|
||||||
|
<!INVISIBLE_REFERENCE!>QueryPagingSource<!><Int, String>()
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
// ISSUE: KT-58719
|
||||||
|
|
||||||
|
// MODULE: a
|
||||||
|
// FILE: pagind/QueryPagingSource.kt
|
||||||
|
|
||||||
|
package pagind
|
||||||
|
|
||||||
|
internal class QueryPagingSource<Key : Any, RowType : Any>
|
||||||
|
|
||||||
|
fun <RowType : Any> QueryPagingSource(randomParam: Int) {}
|
||||||
|
|
||||||
|
// MODULE: b(a)
|
||||||
|
// FILE: Main.kt
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import pagind.QueryPagingSource
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
QueryPagingSource<Int>(10)
|
||||||
|
<!INVISIBLE_MEMBER!>QueryPagingSource<!><Int, String>()
|
||||||
|
}
|
||||||
Generated
+6
@@ -447,6 +447,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
runTest("compiler/testData/diagnostics/tests/inlineDeprecationsOnImplicitCalls.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invisibleClassInsteadOfFun.kt")
|
||||||
|
public void testInvisibleClassInsteadOfFun() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/invisibleClassInsteadOfFun.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
@TestMetadata("InvokeAndRecursiveResolve.kt")
|
||||||
public void testInvokeAndRecursiveResolve() throws Exception {
|
public void testInvokeAndRecursiveResolve() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user