Skip to content

Commit 6349b46

Browse files
dos65WojciechMazur
authored andcommitted
pc: completions - do not add [] for ... derives TC@@ (#23811)
Currently it incorectly adds completion members with square brackets. Exmaple: ```scala class X derives CanEqua@@ // returns `CanEqual[@@]` and `CanEqual` // should return only `CanEqual` ```
1 parent fafb5c1 commit 6349b46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,3 +2285,11 @@ class CompletionSuite extends BaseCompletionSuite:
22852285
|""".stripMargin,
22862286
"asTerm: Term"
22872287
)
2288+
2289+
@Test def `derives-no-square-brackets` =
2290+
check(
2291+
"""
2292+
|case class Miau(y: Int) derives Ordering, CanEqu@@
2293+
|""".stripMargin,
2294+
"CanEqual scala"
2295+
)

0 commit comments

Comments
 (0)