[FIR] Fix incorrect Java code in the test data
There's no point in eliminating K2 differences between red code. ^KT-59915
This commit is contained in:
committed by
Space Team
parent
34cb9aa659
commit
1467e743fd
Vendored
+5
-2
@@ -5,9 +5,12 @@ interface I {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FILE: JavaClass.java
|
// FILE: JavaClass.java
|
||||||
|
import kotlin.coroutines.Continuation;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class JavaClass implements I {
|
public class JavaClass implements I {
|
||||||
@Override
|
@Override
|
||||||
public String foo(int x, kotlin.coroutines.Continuation<String> continuation) {
|
public Object foo(int x, @NotNull Continuation<? super String> continuation) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -22,7 +25,7 @@ class K2 : JavaClass() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class K3 : JavaClass() {
|
class K3 : JavaClass() {
|
||||||
override fun foo(x: Int, y: Continuation<String>): <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>Any?<!> = null
|
override fun foo(x: Int, y: Continuation<String>): Any? = null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun builder(block: suspend () -> Unit) {}
|
fun builder(block: suspend () -> Unit) {}
|
||||||
|
|||||||
+4
-1
@@ -5,9 +5,12 @@ interface I {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FILE: JavaClass.java
|
// FILE: JavaClass.java
|
||||||
|
import kotlin.coroutines.Continuation;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class JavaClass implements I {
|
public class JavaClass implements I {
|
||||||
@Override
|
@Override
|
||||||
public String foo(int x, kotlin.coroutines.Continuation<String> continuation) {
|
public Object foo(int x, @NotNull Continuation<? super String> continuation) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -5,9 +5,12 @@ interface I {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FILE: JavaClass.java
|
// FILE: JavaClass.java
|
||||||
|
import kotlin.coroutines.Continuation;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class JavaClass implements I {
|
public class JavaClass implements I {
|
||||||
@Override
|
@Override
|
||||||
public Object foo(int x, kotlin.coroutines.Continuation<String> continuation) {
|
public Object foo(int x, @NotNull Continuation<? super String> continuation) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-1
@@ -5,9 +5,12 @@ interface I {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FILE: JavaClass.java
|
// FILE: JavaClass.java
|
||||||
|
import kotlin.coroutines.Continuation;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class JavaClass implements I {
|
public class JavaClass implements I {
|
||||||
@Override
|
@Override
|
||||||
public Object foo(int x, kotlin.coroutines.Continuation<String> continuation) {
|
public Object foo(int x, @NotNull Continuation<? super String> continuation) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user