[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:
Nikolay Lunyak
2023-09-04 15:40:50 +03:00
committed by Space Team
parent 34cb9aa659
commit 1467e743fd
4 changed files with 17 additions and 5 deletions
@@ -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) {}
@@ -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;
} }
} }
@@ -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;
} }
} }
@@ -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;
} }
} }