File tree 1 file changed +26
-1
lines changed
presentation-compiler/test/dotty/tools/pc/tests/completion
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -623,14 +623,39 @@ class CompletionSuite extends BaseCompletionSuite:
623
623
|""" .stripMargin
624
624
)
625
625
626
+ @ Test def patRecursive =
627
+ check(
628
+ s """ |object Main {
629
+ | Option(List(Option(1))) match {
630
+ | case Some(List(None, Som@@))
631
+ |}
632
+ | """ .stripMargin,
633
+ """ |Some(value) scala
634
+ |Some scala
635
+ |Some[A](value: A): Some[A]
636
+ |""" .stripMargin
637
+ )
638
+ check(
639
+ s """ |object Main {
640
+ | Option(Option(1)) match {
641
+ | case Some(Som@@)
642
+ |}
643
+ | """ .stripMargin,
644
+ """ |Some(value) scala
645
+ |Some scala
646
+ |Some[A](value: A): Some[A]
647
+ |""" .stripMargin
648
+ )
649
+
626
650
@ Test def pat1 =
627
651
check(
628
652
s """ |object Main {
629
653
| Option(1) match {
630
654
| case List(Som@@)
631
655
|}
632
656
| """ .stripMargin,
633
- """ |Some scala
657
+ """ |Some(value) scala
658
+ |Some scala
634
659
|Some[A](value: A): Some[A]
635
660
|""" .stripMargin
636
661
)
You can’t perform that action at this time.
0 commit comments