FIR IDE: add quickfix to change function return type

This commit is contained in:
Tianyu Geng
2021-05-06 09:43:04 -07:00
committed by teamcityserver
parent b5994fa3a9
commit 71c5c9f6c5
22 changed files with 340 additions and 93 deletions
@@ -4,4 +4,5 @@ fun foo() {
var x = 1
x += 21<caret>
}
}
}
/* IGNORE_FIR */
@@ -4,4 +4,5 @@ fun foo() {
var x = 1
x += 21<caret>
}
}
}
/* IGNORE_FIR */
@@ -1,4 +1,5 @@
// "Change type of 'complex' to '(Int) -> Long'" "true"
val complex: (Int) -> String
get() = { it.toLong()<caret> }
get() = { it.toLong()<caret> }
/* IGNORE_FIR */
@@ -1,4 +1,5 @@
// "Change type of 'complex' to '(Int) -> Long'" "true"
val complex: (Int) -> Long
get() = { it.toLong() }
get() = { it.toLong() }
/* IGNORE_FIR */
@@ -4,4 +4,5 @@ class A {
var x: Int
get(): Int = if (true) { {42}<caret> } else { {24} }
set(i: Int) {}
}
}
/* IGNORE_FIR */
@@ -3,4 +3,5 @@ fun foo(f: () -> Int) {
foo {
""<caret>
}
}
}
/* IGNORE_FIR */
@@ -9,4 +9,5 @@ fun foo() {
if (true) x<caret> else x
}
}
}
}
/* IGNORE_FIR */