Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)

This commit is contained in:
Yan Zhulanow
2018-11-07 17:44:45 +09:00
parent 5fd070a9b9
commit 69633e6686
5 changed files with 87 additions and 3 deletions
@@ -0,0 +1,28 @@
// WITH_RUNTIME
interface Intf
interface GenericIntf<T>
class Foo {
private val foo by lazy {
object : Runnable {
override fun run() {}
}
}
private val bar by lazy {
object : Runnable, Intf {
override fun run() {}
}
}
private val baz by lazy {
abstract class LocalIntf
object : LocalIntf() {}
}
private val generic1 by lazy {
abstract class LocalIntf : GenericIntf<CharSequence>
object : LocalIntf() {}
}
}
@@ -0,0 +1,47 @@
import java.lang.System;
@kotlin.Metadata()
public final class Foo {
private final kotlin.Lazy foo$delegate = null;
private final kotlin.Lazy bar$delegate = null;
private final kotlin.Lazy baz$delegate = null;
private final kotlin.Lazy generic1$delegate = null;
private final java.lang.Runnable getFoo() {
return null;
}
private final java.lang.Object getBar() {
return null;
}
private final java.lang.Object getBaz() {
return null;
}
private final GenericIntf<java.lang.CharSequence> getGeneric1() {
return null;
}
public Foo() {
super();
}
}
////////////////////
import java.lang.System;
@kotlin.Metadata()
public abstract interface GenericIntf<T extends java.lang.Object> {
}
////////////////////
import java.lang.System;
@kotlin.Metadata()
public abstract interface Intf {
}