Fix test data for testParamTypeLambdaMismatch in >= 192

This commit is contained in:
Nikolay Krasko
2019-11-29 16:11:55 +03:00
parent 408f958273
commit c12599a045
2 changed files with 12 additions and 1 deletions
@@ -1,6 +1,5 @@
// "Surround with lambda" "false"
// ERROR: Type mismatch: inferred type is Object but () -> String was expected
// ACTION: Annotate constructor 'Object'...
// ACTION: Change parameter 'block' type of function 'str' to 'Object'
// ACTION: Create function 'str'
// ACTION: Edit method contract of 'Object'
@@ -0,0 +1,12 @@
// "Surround with lambda" "false"
// ERROR: Type mismatch: inferred type is Object but () -> String was expected
// ACTION: Annotate constructor 'Object'...
// ACTION: Change parameter 'block' type of function 'str' to 'Object'
// ACTION: Create function 'str'
// ACTION: Edit method contract of 'Object'
// ACTION: Introduce import alias
fun fn() {
str(<caret>Object())
}
fun str(block: () -> String) {}