Skip to content

Commit c9d6c5f

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

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
@@ -2008,3 +2008,16 @@ class CompletionSuite extends BaseCompletionSuite:
20082008
|""".stripMargin,
20092009
includeCompletionKind = true
20102010
)
2011+
2012+
@Test def `def-arg` =
2013+
check(
2014+
"""|package a
2015+
|object W {
2016+
| val aaaaaa = 1
2017+
|}
2018+
|object O {
2019+
| def foo(aa@@)
2020+
|}
2021+
|""".stripMargin,
2022+
""
2023+
)

0 commit comments

Comments
 (0)