181: Fix QuickFixTestGenerated$TypeMismatch.testParamTypeLambdaMismatch

This commit is contained in:
Vyacheslav Gerasimov
2018-12-28 19:01:00 +03:00
parent 19108d8821
commit 343560c533
@@ -0,0 +1,11 @@
// "Surround with lambda" "false"
// ERROR: Type mismatch: inferred type is Object but () -> String was expected
// ACTION: Annotate constructor 'Object' as @Deprecated
// ACTION: Change parameter 'block' type of function 'str' to 'Object'
// ACTION: Create function 'str'
// ACTION: Edit method contract of 'Object'
fun fn() {
str(<caret>Object())
}
fun str(block: () -> String) {}