QuickFix: change property type to match expression returned by getter

This commit is contained in:
Wojciech Lopata
2013-05-15 23:48:49 +02:00
parent 16d9abf546
commit 0a541373a5
7 changed files with 44 additions and 8 deletions
@@ -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) {}
}
@@ -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) {}
}