Quick-Fixes: Support "Change function return type" quick-fix for non-local returns
#KT-6910 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
fun foo(n: Int): Int {
|
||||
n.let {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
fun foo(n: Int): Int {
|
||||
n.let {
|
||||
return@foo 1
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
fun foo(n: Int): Boolean {
|
||||
n.let {
|
||||
return <caret>1
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Change 'foo' function return type to 'Int'" "true"
|
||||
fun foo(n: Int): Boolean {
|
||||
n.let {
|
||||
return@foo <caret>1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user