K2: Add test reproducing KT-64222
This commit is contained in:
committed by
Space Team
parent
dbbfb23fa9
commit
97d17012e5
+6
@@ -4086,6 +4086,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
public void testKt63841() throws Exception {
|
public void testKt63841() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt64222.kt")
|
||||||
|
public void testKt64222() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4086,6 +4086,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
public void testKt63841() throws Exception {
|
public void testKt63841() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt64222.kt")
|
||||||
|
public void testKt64222() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4080,6 +4080,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
public void testKt63841() throws Exception {
|
public void testKt63841() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt64222.kt")
|
||||||
|
public void testKt64222() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
+6
@@ -4086,6 +4086,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
public void testKt63841() throws Exception {
|
public void testKt63841() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt64222.kt")
|
||||||
|
public void testKt64222() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// ISSUE: KT-64222
|
||||||
|
|
||||||
|
interface A {
|
||||||
|
fun bar(): B<Int>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface B<T>
|
||||||
|
fun <E> foo(block: B<E>.() -> Unit): B<E> = TODO()
|
||||||
|
|
||||||
|
class C : A {
|
||||||
|
private var value: B<Int>? = null
|
||||||
|
|
||||||
|
override fun <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>bar<!>() = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> {
|
||||||
|
value = this
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
// ISSUE: KT-64222
|
||||||
|
|
||||||
|
interface A {
|
||||||
|
fun bar(): B<Int>
|
||||||
|
}
|
||||||
|
|
||||||
|
interface B<T>
|
||||||
|
fun <E> foo(block: B<E>.() -> Unit): B<E> = TODO()
|
||||||
|
|
||||||
|
class C : A {
|
||||||
|
private var value: B<Int>? = null
|
||||||
|
|
||||||
|
override fun bar() = foo {
|
||||||
|
value = this
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -4086,6 +4086,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
public void testKt63841() throws Exception {
|
public void testKt63841() throws Exception {
|
||||||
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt63841.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt64222.kt")
|
||||||
|
public void testKt64222() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/builderInference/issues/kt64222.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
|
|||||||
Reference in New Issue
Block a user