"Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Change return type of enclosing function 'test2' to 'List<Any>'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test2(ss: List<Any>) {
|
||||
return ss.map { it }<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Change return type of enclosing function 'test2' to 'List<Any>'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test2(ss: List<Any>): List<Any> {
|
||||
return ss.map { it }<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Change return type of enclosing function 'test1' to 'Int'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test1(ss: List<Any>) {
|
||||
return ss.map { it }.size<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Change return type of enclosing function 'test1' to 'Int'" "true"
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test1(ss: List<Any>): Int {
|
||||
return ss.map { it }.size<caret>
|
||||
}
|
||||
Reference in New Issue
Block a user