"Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-12-05 12:22:27 +03:00
parent 2ac8e5b4a7
commit 268702e0cc
8 changed files with 76 additions and 22 deletions
@@ -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>
}