[AA FIR] add tests on implicit type in delegated scope

^KT-58727
This commit is contained in:
Dmitrii Gridin
2023-05-16 17:18:12 +02:00
committed by Space Team
parent 6a8981372b
commit 4472e1ae4e
26 changed files with 987 additions and 0 deletions
@@ -0,0 +1,10 @@
public final class A /* one.A*/ implements one.I {
@org.jetbrains.annotations.NotNull()
private final one.I p;
public A(@org.jetbrains.annotations.NotNull() one.I);// .ctor(one.I)
public int bar();// bar()
public int foo();// foo()
}
@@ -0,0 +1,12 @@
public final class A /* one.A*/ implements one.I {
@org.jetbrains.annotations.NotNull()
private final one.I p;
@java.lang.Override()
public error.NonExistentClass foo();// foo()
@java.lang.Override()
public int bar();// bar()
public A(@org.jetbrains.annotations.NotNull() one.I);// .ctor(one.I)
}
@@ -0,0 +1,12 @@
// one.A
package one
interface I {
fun foo() = 4
fun bar(): Int = 42
}
class A(
private val p: I
) : I by p
@@ -0,0 +1,10 @@
public final class A /* one.A*/ implements one.I {
@org.jetbrains.annotations.NotNull()
private final one.I p;
public A(@org.jetbrains.annotations.NotNull() one.I);// .ctor(one.I)
public int bar();// bar()
public int foo();// foo()
}