Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead
This commit is contained in:
+3
-1
@@ -1,5 +1,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class A {
|
||||
val a: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
||||
}
|
||||
@@ -7,7 +9,7 @@ class A {
|
||||
val aTopLevel: Int by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>Delegate()<!>
|
||||
|
||||
class Delegate {
|
||||
fun getValue(t: Any?, p: PropertyMetadata, a: Int): Int {
|
||||
fun getValue(t: Any?, p: KProperty<*>, a: Int): Int {
|
||||
return a
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user