Create From Usage: Add support of get/set functions in property delegates
#KT-5977 Fixed
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Create function 'set' from usage" "true"
|
||||
class F {
|
||||
fun get(x: X, propertyMetadata: PropertyMetadata): Int = 1
|
||||
|
||||
fun set(x: X, propertyMetadata: PropertyMetadata, i: Int) {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
class X {
|
||||
var f: Int by F()
|
||||
}
|
||||
Reference in New Issue
Block a user