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() {}
}
}