allow delegated properties to have getters and setters without bodies
This commit is contained in:
committed by
Andrey Breslav
parent
8ba15937f9
commit
e9266481c5
@@ -0,0 +1,10 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
val a: Int by Delegate()
|
||||
get
|
||||
|
||||
class Delegate {
|
||||
fun get(t: Any?, p: PropertyMetadata): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user