File tree 1 file changed +23
-0
lines changed
presentation-compiler/test/dotty/tools/pc/tests/completion 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -646,6 +646,17 @@ class CompletionSuite extends BaseCompletionSuite:
646
646
|Some scala
647
647
|""" .stripMargin
648
648
)
649
+ check(
650
+ s """ |object Main {
651
+ | (null: Option[Option[Option[Option[Int]]]]) match
652
+ | case Some(Some(Some(Som@@))))
653
+ |}
654
+ | """ .stripMargin,
655
+ """ |Some(value) scala
656
+ |Some[A](value: A): Some[A]
657
+ |Some scala
658
+ |""" .stripMargin
659
+ )
649
660
check(
650
661
s """ |object Main {
651
662
| Option(Option(1)) match {
@@ -657,6 +668,18 @@ class CompletionSuite extends BaseCompletionSuite:
657
668
|Some scala
658
669
|""" .stripMargin
659
670
)
671
+ check(
672
+ s """ |object Test:
673
+ | case class NestedClass(x: Int)
674
+ |object TestRun:
675
+ | Option(Test.NestedClass(5)) match
676
+ | case Some(Test.Neste@@)
677
+ | """ .stripMargin,
678
+ """ |NestedClass(x) test.Test
679
+ |NestedClass(x: Int): NestedClass
680
+ |NestedClass test.Test
681
+ |""" .stripMargin
682
+ )
660
683
661
684
@ Test def pat1 =
662
685
check(
You can’t perform that action at this time.
0 commit comments