Kapt: Fix stubs for delegated properties with anonymous types (KT-27910)
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user