Skip to content

Commit c48ca3f

Browse files
kasiaMarekWojciechMazur
authored andcommitted
test: don't suggest completions for param names in definition
[Cherry-picked e0e3695]
1 parent 85126e5 commit c48ca3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,3 +2041,16 @@ class CompletionSuite extends BaseCompletionSuite:
20412041
|""".stripMargin,
20422042
includeCompletionKind = true
20432043
)
2044+
2045+
@Test def `def-arg` =
2046+
check(
2047+
"""|package a
2048+
|object W {
2049+
| val aaaaaa = 1
2050+
|}
2051+
|object O {
2052+
| def foo(aa@@)
2053+
|}
2054+
|""".stripMargin,
2055+
""
2056+
)

0 commit comments

Comments
 (0)