"introduce backing property" intention
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Foo {
|
||||
private var _x = ""
|
||||
var x: String
|
||||
get() = _x + "!"
|
||||
set(value) { _x = value + "!" }
|
||||
}
|
||||
Reference in New Issue
Block a user