Skip to content

Commit 4d8c310

Browse files
committed
Add an ignored test for eta-expansion
1 parent bf77876 commit 4d8c310

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

presentation-compiler/test/dotty/tools/pc/tests/edit/ConvertToNamedLambdaParametersSuite.scala

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import dotty.tools.pc.utils.TextEdits
1414
import dotty.tools.pc.PcConvertToNamedLambdaParameters
1515

1616
import org.eclipse.lsp4j as l
17-
import org.junit.Test
17+
import org.junit.{Test, Ignore}
1818

1919
class 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,

0 commit comments

Comments
 (0)