FIR IDE: add quickfix to change function return type
This commit is contained in:
committed by
teamcityserver
parent
b5994fa3a9
commit
71c5c9f6c5
Vendored
+2
-1
@@ -4,4 +4,5 @@ fun foo() {
|
||||
var x = 1
|
||||
x += 21<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
/* IGNORE_FIR */
|
||||
|
||||
idea/testData/quickfix/typeMismatch/typeMismatchOnReturnedExpression/assignmentTypeMismatch.kt.after
Vendored
+2
-1
@@ -4,4 +4,5 @@ fun foo() {
|
||||
var x = 1
|
||||
x += 21<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
/* IGNORE_FIR */
|
||||
|
||||
Vendored
+2
-1
@@ -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 */
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
// "Change type of 'complex' to '(Int) -> Long'" "true"
|
||||
|
||||
val complex: (Int) -> Long
|
||||
get() = { it.toLong() }
|
||||
get() = { it.toLong() }
|
||||
/* IGNORE_FIR */
|
||||
|
||||
+2
-1
@@ -4,4 +4,5 @@ class A {
|
||||
var x: Int
|
||||
get(): Int = if (true) { {42}<caret> } else { {24} }
|
||||
set(i: Int) {}
|
||||
}
|
||||
}
|
||||
/* IGNORE_FIR */
|
||||
|
||||
+2
-1
@@ -3,4 +3,5 @@ fun foo(f: () -> Int) {
|
||||
foo {
|
||||
""<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
/* IGNORE_FIR */
|
||||
|
||||
+2
-1
@@ -9,4 +9,5 @@ fun foo() {
|
||||
if (true) x<caret> else x
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* IGNORE_FIR */
|
||||
|
||||
Reference in New Issue
Block a user