backing field migration fixes
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Migrate backing field syntax" "true"
|
||||
|
||||
class Foo {
|
||||
var a: Int = 0
|
||||
get() = 0
|
||||
set(v) { $<caret>a = v }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Migrate backing field syntax" "true"
|
||||
|
||||
class Foo {
|
||||
var a: Int = 0
|
||||
get() = 0
|
||||
set(v) { field = v }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Replace with property access" "true"
|
||||
|
||||
class A {
|
||||
var foo: Int = 0
|
||||
|
||||
fun bar() = $f<caret>oo
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Replace with property access" "true"
|
||||
|
||||
class A {
|
||||
var foo: Int = 0
|
||||
|
||||
fun bar() = foo
|
||||
}
|
||||
Reference in New Issue
Block a user