Add tests for obsolete issues
#KT-38804 Obsolete #KT-38801 Obsolete #KT-38835 Obsolete #KT-38737 Obsolete #KT-38664 Obsolete #KT-38549 Obsolete #KT-38766 Obsolete #KT-38714 Obsolete
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
abstract class MainActivity : DIAware1() {
|
||||
val bar: Bar by <!DEBUG_INFO_LEAKING_THIS!>instance1<!>()
|
||||
}
|
||||
|
||||
class Bar
|
||||
|
||||
open class DIAware1 {
|
||||
inline fun <reified T : Any> DIAware1.instance1(tag: Any? = null): DIProperty<T> = TODO()
|
||||
}
|
||||
|
||||
class DIProperty<out V> : LazyDelegate<V> {
|
||||
override fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V> = TODO()
|
||||
}
|
||||
|
||||
interface LazyDelegate<out V> {
|
||||
operator fun provideDelegate(receiver: Any?, prop: KProperty<Any?>): Lazy<V>
|
||||
}
|
||||
Reference in New Issue
Block a user