File tree 1 file changed +5
-25
lines changed
presentation-compiler/test/dotty/tools/pc/tests/completion 1 file changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -669,14 +669,12 @@ class CompletionSuite extends BaseCompletionSuite:
669
669
check(
670
670
s """ |object Main {
671
671
| Option(1) match {
672
- | case _: S @@
672
+ | case _: Som @@
673
673
|}
674
674
| """ .stripMargin,
675
675
""" |Some[?] scala
676
- |ScalaReflectionException scala
677
- |Seq[A] scala.collection.immutable
678
676
|""" .stripMargin,
679
- topLines = Some (3 )
677
+ topLines = Some (1 )
680
678
)
681
679
682
680
@ Test def adt3 =
@@ -695,39 +693,21 @@ class CompletionSuite extends BaseCompletionSuite:
695
693
| """ .stripMargin,
696
694
""" |NotString: Int
697
695
|Number: Regex
698
- |Nil scala.collection.immutable
699
696
|""" .stripMargin,
700
- topLines = Option ( 3 )
697
+ topLines = Some ( 2 )
701
698
)
702
699
703
700
@ Test def adt4 =
704
701
check(
705
702
s """ |object Main {
706
703
| val Number = "".r
707
704
| "" match {
708
- | case _: N@@
709
- |}
710
- | """ .stripMargin,
711
- """ |Number: Regex
712
- |NoSuchElementException java.util
713
- |NoSuchFieldError java.lang
714
- |""" .stripMargin,
715
- topLines = Option (3 )
716
- )
717
-
718
- @ Test def adt5 =
719
- check(
720
- s """ |object Main {
721
- | val Number = "".r
722
- | "" match {
723
- | case _: N@@
705
+ | case _: Numb@@
724
706
|}
725
707
| """ .stripMargin,
726
708
""" |Number: Regex
727
- |NoSuchElementException java.util
728
- |NoSuchFieldError java.lang
729
709
|""" .stripMargin,
730
- topLines = Option ( 3 )
710
+ topLines = Some ( 1 )
731
711
)
732
712
733
713
@ Test def `no-methods-on-case-type` =
You can’t perform that action at this time.
0 commit comments