From 343560c5332a01207544504f658500ef1ff04bfc Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Fri, 28 Dec 2018 19:01:00 +0300 Subject: [PATCH] 181: Fix QuickFixTestGenerated$TypeMismatch.testParamTypeLambdaMismatch --- .../typeMismatch/paramTypeLambdaMismatch.kt.181 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.181 diff --git a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.181 b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.181 new file mode 100644 index 00000000000..55eccecfca9 --- /dev/null +++ b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.181 @@ -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(Object()) +} + +fun str(block: () -> String) {} \ No newline at end of file