File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
compiler/src/dotty/tools/dotc/interactive
presentation-compiler/test/dotty/tools/pc/tests/completion Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ object Completion:
94
94
* Inspect `path` to determine the completion prefix. Only symbols whose name start with the
95
95
* returned prefix should be considered.
96
96
*/
97
- def completionPrefix (path : List [untpd.Tree ], pos : SourcePosition )(using Context ): String =
97
+ def completionPrefix (path : List [untpd.Tree ], pos : SourcePosition )(using Context ): String =
98
98
path match
99
99
case (sel : untpd.ImportSelector ) :: _ =>
100
100
completionPrefix(sel.imported :: Nil , pos)
Original file line number Diff line number Diff line change @@ -1442,3 +1442,14 @@ class CompletionSuite extends BaseCompletionSuite:
1442
1442
|""" .stripMargin
1443
1443
)
1444
1444
1445
+
1446
+ @ Test def `no-square-brackets` =
1447
+ checkEdit(
1448
+ """ |object O:
1449
+ | val a = List.appl@@
1450
+ |""" .stripMargin,
1451
+ """ |object O:
1452
+ | val a = List.apply($0)
1453
+ |""" .stripMargin,
1454
+ )
1455
+
You can’t perform that action at this time.
0 commit comments