181: Fix QuickFixTestGenerated$TypeMismatch.testParamTypeLambdaMismatch
This commit is contained in:
@@ -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) {}
|
||||||
Reference in New Issue
Block a user