Remove PropertyMetadata from project and bytecode, migrate code to KProperty
This commit is contained in:
@@ -15,11 +15,13 @@ class BigTest {
|
||||
// FILE: second.kt
|
||||
package some
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class DelegateImpl<T> {
|
||||
val value: T = null!!
|
||||
}
|
||||
|
||||
public fun <T> DelegateImpl<T>.getValue(thisRef: Any?, property: PropertyMetadata): T = value
|
||||
public fun <T> DelegateImpl<T>.getValue(thisRef: Any?, property: KProperty<*>): T = value
|
||||
|
||||
|
||||
|
||||
@@ -34,4 +36,4 @@ import some.getValue
|
||||
|
||||
class BigTest {
|
||||
val a by <caret>DelegateImpl<Int>()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user