K1/K2: add more tests around intellij.vcs.git example
This commit is contained in:
committed by
Space Team
parent
d04625666a
commit
98e4c64360
+18
@@ -22900,6 +22900,24 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection2.kt")
|
||||
public void testWithTestConnection2() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection3.kt")
|
||||
public void testWithTestConnection3() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection4.kt")
|
||||
public void testWithTestConnection4() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongVarianceInJava.kt")
|
||||
public void testWrongVarianceInJava() {
|
||||
|
||||
+18
@@ -22900,6 +22900,24 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection2.kt")
|
||||
public void testWithTestConnection2() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection3.kt")
|
||||
public void testWithTestConnection3() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection4.kt")
|
||||
public void testWithTestConnection4() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongVarianceInJava.kt")
|
||||
public void testWrongVarianceInJava() {
|
||||
|
||||
+18
@@ -22894,6 +22894,24 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection2.kt")
|
||||
public void testWithTestConnection2() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection3.kt")
|
||||
public void testWithTestConnection3() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection4.kt")
|
||||
public void testWithTestConnection4() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongVarianceInJava.kt")
|
||||
public void testWrongVarianceInJava() {
|
||||
|
||||
+18
@@ -22900,6 +22900,24 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection2.kt")
|
||||
public void testWithTestConnection2() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection3.kt")
|
||||
public void testWithTestConnection3() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection4.kt")
|
||||
public void testWithTestConnection4() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongVarianceInJava.kt")
|
||||
public void testWrongVarianceInJava() {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun waitTestConnection(res: B<*>) {
|
||||
C.wait(res.toFuture())
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import java.util.concurrent.CompletableFuture
|
||||
|
||||
abstract class B<S> {
|
||||
abstract fun toFuture(): CompletableFuture<S>
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
public class C {
|
||||
public static <F> F wait(Future<F> future) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun waitTestConnection(res: B<*>) {
|
||||
C.wait(res.toFuture()).length
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import java.util.concurrent.CompletableFuture
|
||||
|
||||
abstract class B<S : CharSequence?> {
|
||||
abstract fun toFuture(): CompletableFuture<S>
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
public class C {
|
||||
public static <F> F wait(Future<F> future) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun waitTestConnection(res: B<*>) {
|
||||
C.wait(res.toFuture())<!UNSAFE_CALL!>.<!>length
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import java.util.concurrent.CompletableFuture
|
||||
|
||||
abstract class B<S : CharSequence?> {
|
||||
abstract fun toFuture(): CompletableFuture<S>
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
public class C {
|
||||
public static <F> F wait(Future<F> future) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun waitTestConnection(res: B<*>) {
|
||||
C.wait(res.toFuture())
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
import java.util.concurrent.CompletableFuture
|
||||
|
||||
abstract class B<S> {
|
||||
abstract fun toFuture(): CompletableFuture<MutableList<S>>
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
public class C {
|
||||
public static <F> F wait(Future<F> future) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Generated
+18
@@ -22900,6 +22900,24 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection2.kt")
|
||||
public void testWithTestConnection2() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection3.kt")
|
||||
public void testWithTestConnection3() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("withTestConnection4.kt")
|
||||
public void testWithTestConnection4() {
|
||||
runTest("compiler/testData/diagnostics/tests/j+k/withTestConnection4.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("wrongVarianceInJava.kt")
|
||||
public void testWrongVarianceInJava() {
|
||||
|
||||
Reference in New Issue
Block a user