QuickFix: change property type to match expression returned by getter
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'A.x' type to '() -> Int'" "true"
|
||||
class A {
|
||||
var x: () -> Int
|
||||
get(): () -> Int = if (true) { {42}<caret> } else { {24} }
|
||||
set(i: () -> Int) {}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'A.x' type to '() -> Int'" "true"
|
||||
class A {
|
||||
var x: Int
|
||||
get(): Int = if (true) { {42}<caret> } else { {24} }
|
||||
set(i: Int) {}
|
||||
}
|
||||
Reference in New Issue
Block a user