File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
presentation-compiler/test/dotty/tools/pc/tests/completion Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -634,14 +634,40 @@ class CompletionSuite extends BaseCompletionSuite:
634
634
|""" .stripMargin
635
635
)
636
636
637
+ @ Test def patRecursive =
638
+ check(
639
+ s """ |object Main {
640
+ | Option(List(Option(1))) match {
641
+ | case Some(List(None, Som@@))
642
+ |}
643
+ | """ .stripMargin,
644
+ """ |Some(value) scala
645
+ |Some[A](value: A): Some[A]
646
+ |Some scala
647
+ |""" .stripMargin
648
+ )
649
+ check(
650
+ s """ |object Main {
651
+ | Option(Option(1)) match {
652
+ | case Some(Som@@)
653
+ |}
654
+ | """ .stripMargin,
655
+ """ |Some(value) scala
656
+ |Some[A](value: A): Some[A]
657
+ |Some scala
658
+ |""" .stripMargin
659
+ )
660
+
637
661
@ Test def pat1 =
638
662
check(
639
663
s """ |object Main {
640
664
| Option(1) match {
641
665
| case List(Som@@)
642
666
|}
643
667
| """ .stripMargin,
644
- """ |Some[A](value: A): Some[A]
668
+ """ |Some(value) scala
669
+ |Some scala
670
+ |Some[A](value: A): Some[A]
645
671
|Some scala
646
672
|""" .stripMargin
647
673
)
You can’t perform that action at this time.
0 commit comments