From c12599a045fa8512ad4c3b714390cce00bd7d7d1 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Fri, 29 Nov 2019 16:11:55 +0300 Subject: [PATCH] Fix test data for testParamTypeLambdaMismatch in >= 192 --- .../quickfix/typeMismatch/paramTypeLambdaMismatch.kt | 1 - .../typeMismatch/paramTypeLambdaMismatch.kt.191 | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.191 diff --git a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt index 8b284fed0ad..4eaa454f525 100644 --- a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt +++ b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt @@ -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' diff --git a/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.191 b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.191 new file mode 100644 index 00000000000..8b284fed0ad --- /dev/null +++ b/idea/testData/quickfix/typeMismatch/paramTypeLambdaMismatch.kt.191 @@ -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(Object()) +} + +fun str(block: () -> String) {} \ No newline at end of file