QuickFix: change property type to match it's initializer type

This commit is contained in:
Wojciech Lopata
2013-05-09 22:24:15 +02:00
parent ed6e734c14
commit d3492d8e6f
4 changed files with 19 additions and 0 deletions
@@ -0,0 +1,4 @@
// "Change 'f' type to '(Long) -> Unit'" "true"
fun foo() {
var f: (Long) -> Unit = if (true) { (x: Long) -> }<caret> else { (x: Long) -> }
}
@@ -0,0 +1,4 @@
// "Change 'f' type to '(Long) -> Unit'" "true"
fun foo() {
var f: Int = if (true) { (x: Long) -> }<caret> else { (x: Long) -> }
}