Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead
This commit is contained in:
+4
-2
@@ -1,5 +1,7 @@
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class CustomDelegate {
|
||||
operator fun getValue(thisRef: Any?, prop: PropertyMetadata): String = prop.name
|
||||
operator fun getValue(thisRef: Any?, prop: KProperty<*>): String = prop.name
|
||||
}
|
||||
|
||||
public abstract class A<T: Any, V: String?>(<!INAPPLICABLE_LATEINIT_MODIFIER_PRIMARY_CONSTRUCTOR_PARAMETER!>lateinit<!> var p2: String) {
|
||||
@@ -62,4 +64,4 @@ public class B {
|
||||
init {
|
||||
a.length
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user