Added KT-4579 makeTypeExplicitInLambda and makeTypeImplicitInLambda intentions

This commit is contained in:
Lingzhang
2014-03-27 15:17:52 -04:00
committed by Alexander Udalov
parent 1ef785eb1a
commit 6066d19de5
60 changed files with 656 additions and 1 deletions
@@ -1,6 +1,10 @@
// "Change 'foo' function return type to '([ERROR : NoSuchType]) -> Int'" "false"
// ACTION: Disable 'Make Types Implicit In Lambda (May Break Code)'
// ACTION: Edit intention settings
// ACTION: Make types implicit in lambda (may break code)
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Int</td></tr><tr><td>Found:</td><td>([ERROR : NoSuchType]) &rarr; kotlin.Int</td></tr></table></html>
// ERROR: Unresolved reference: NoSuchType
fun foo(): Int {
return { (x: NoSuchType<caret>) -> 42 }
}