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