File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
presentation-compiler/test/dotty/tools/pc/tests/edit Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import dotty.tools.pc.utils.TextEdits
1414import dotty .tools .pc .PcConvertToNamedLambdaParameters
1515
1616import org .eclipse .lsp4j as l
17- import org .junit .Test
17+ import org .junit .{ Test , Ignore }
1818
1919class ConvertToNamedLambdaParametersSuite extends BaseCodeActionSuite :
2020
@@ -148,6 +148,19 @@ class ConvertToNamedLambdaParametersSuite extends BaseCodeActionSuite:
148148 |}""" .stripMargin
149149 )
150150
151+ @ Ignore
152+ @ Test def `Int => Int eta-expansion in map` =
153+ checkEdit(
154+ """ |object A{
155+ | def f(x: Int): Int = x + 1
156+ | val a = List(1, 2).map(<<f>>)
157+ |}""" .stripMargin,
158+ """ |object A{
159+ | def f(x: Int): Int = x + 1
160+ | val a = List(1, 2).map(i => f(i))
161+ |}""" .stripMargin
162+ )
163+
151164 def checkEdit (
152165 original : String ,
153166 expected : String ,
You can’t perform that action at this time.
0 commit comments