[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
interface A {
|
||||
fun b(a : Int)
|
||||
}
|
||||
|
||||
interface B : A {}
|
||||
|
||||
class C1 : A {
|
||||
override fun b(b : Int) {}
|
||||
}
|
||||
|
||||
class C2 : B {
|
||||
override fun b(b : Int) {}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
interface C {
|
||||
fun foo(a : Int)
|
||||
}
|
||||
|
||||
interface D {
|
||||
fun foo(b : Int)
|
||||
}
|
||||
|
||||
interface E : C, D
|
||||
|
||||
interface F : C, D {
|
||||
override fun foo(a : Int) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
class Function1Impl : (String) -> Unit {
|
||||
override fun invoke(myParamName: String) {}
|
||||
}
|
||||
|
||||
fun test1(f: Function1Impl) {
|
||||
f("")
|
||||
<!INAPPLICABLE_CANDIDATE!>f<!>(p0 = "")
|
||||
f(myParamName = "")
|
||||
f.invoke("")
|
||||
f.<!INAPPLICABLE_CANDIDATE!>invoke<!>(p0 = "")
|
||||
f.invoke(myParamName = "")
|
||||
}
|
||||
|
||||
fun test2(f: (String) -> Unit) {
|
||||
f("")
|
||||
<!INAPPLICABLE_CANDIDATE!>f<!>(p0 = "")
|
||||
<!INAPPLICABLE_CANDIDATE!>f<!>(myParamName = "")
|
||||
f.invoke("")
|
||||
f.<!INAPPLICABLE_CANDIDATE!>invoke<!>(p0 = "")
|
||||
f.<!INAPPLICABLE_CANDIDATE!>invoke<!>(myParamName = "")
|
||||
}
|
||||
|
||||
fun test3(f: String.(String) -> Unit) {
|
||||
"".<!UNRESOLVED_REFERENCE!>f<!>("")
|
||||
"".<!UNRESOLVED_REFERENCE!>f<!>(p0 = "")
|
||||
"".<!UNRESOLVED_REFERENCE!>f<!>(zzz = "")
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Super.java
|
||||
|
||||
interface Super {
|
||||
void foo(long superName);
|
||||
}
|
||||
|
||||
// FILE: Sub.java
|
||||
|
||||
interface Sub extends Super {
|
||||
}
|
||||
|
||||
// FILE: SubSub.kt
|
||||
|
||||
class SubSub : Sub {
|
||||
override fun foo(subName: Long) {}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// FILE: Super.kt
|
||||
|
||||
interface Super {
|
||||
fun foo(superName: Int)
|
||||
}
|
||||
|
||||
// FILE: Sub.java
|
||||
|
||||
interface Sub extends Super {
|
||||
}
|
||||
|
||||
// FILE: SubSub.kt
|
||||
|
||||
class SubSub : Sub {
|
||||
override fun foo(subName: Int) {}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// FILE: KSuper.kt
|
||||
|
||||
interface KSuper {
|
||||
fun foo(ksuperName: Int)
|
||||
}
|
||||
|
||||
// FILE: JSuper1.java
|
||||
|
||||
interface JSuper1 {
|
||||
void foo(int jsuper1Name);
|
||||
}
|
||||
|
||||
// FILE: JSuper2.java
|
||||
|
||||
interface JSuper2 {
|
||||
void foo(int jsuper2Name);
|
||||
}
|
||||
|
||||
|
||||
// FILE: Sub1.java
|
||||
interface Sub1 extends KSuper, JSuper1, JSuper2 {
|
||||
@Override
|
||||
void foo(int sub1Name);
|
||||
}
|
||||
|
||||
// FILE: Sub2.java
|
||||
interface Sub2 extends JSuper1, KSuper, JSuper2 {
|
||||
@Override
|
||||
void foo(int sub2Name);
|
||||
}
|
||||
|
||||
// FILE: Sub3.java
|
||||
interface Sub3 extends JSuper1, JSuper2, KSuper {
|
||||
@Override
|
||||
void foo(int sub3Name);
|
||||
}
|
||||
|
||||
|
||||
// FILE: SubSub.kt
|
||||
|
||||
class SubSub1 : Sub1 {
|
||||
override fun foo(ksuperName: Int) {}
|
||||
}
|
||||
|
||||
class SubSub2 : Sub2 {
|
||||
override fun foo(ksuperName: Int) {}
|
||||
}
|
||||
|
||||
class SubSub3 : Sub3 {
|
||||
override fun foo(ksuperName: Int) {}
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// FILE: JavaInterface.java
|
||||
|
||||
interface JavaInterface {
|
||||
void foo(int javaName);
|
||||
}
|
||||
|
||||
// FILE: kotlin.kt
|
||||
|
||||
interface KotlinTrait {
|
||||
public fun foo(someOtherName: Int) {}
|
||||
}
|
||||
|
||||
class BothTraitsSubclass : JavaInterface, KotlinTrait
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// FILE: JavaInterface.java
|
||||
|
||||
public interface JavaInterface {
|
||||
void foo(int javaName);
|
||||
}
|
||||
|
||||
// FILE: kotlin.kt
|
||||
|
||||
class SimpleSubclass : JavaInterface {
|
||||
override fun foo(kotlinName: Int) {}
|
||||
}
|
||||
|
||||
|
||||
interface SubtraitWithFakeOverride : JavaInterface
|
||||
|
||||
class Subclass : SubtraitWithFakeOverride {
|
||||
override fun foo(otherKotlinName: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user