Added KT-4579 makeTypeExplicitInLambda and makeTypeImplicitInLambda intentions
This commit is contained in:
committed by
Alexander Udalov
parent
1ef785eb1a
commit
6066d19de5
+4
@@ -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]) → kotlin.Int</td></tr></table></html>
|
||||
// ERROR: Unresolved reference: NoSuchType
|
||||
|
||||
fun foo(): Int {
|
||||
return { (x: NoSuchType<caret>) -> 42 }
|
||||
}
|
||||
Reference in New Issue
Block a user