diff options
Diffstat (limited to 'tests/pos/t8300-patmat-a.scala')
-rw-r--r-- | tests/pos/t8300-patmat-a.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/pos/t8300-patmat-a.scala b/tests/pos/t8300-patmat-a.scala new file mode 100644 index 000000000..ab3a3c960 --- /dev/null +++ b/tests/pos/t8300-patmat-a.scala @@ -0,0 +1,20 @@ +// cf. pos/t8300-patmat-b.scala +trait Universe { + type Name >: Null <: AnyRef with NameApi + trait NameApi + + type TermName >: Null <: Name with TermNameApi + trait TermNameApi extends NameApi +} + +object Test extends App { + val u: Universe = ??? + import u._ + + locally { + val ScalaName: TermName = ??? + ??? match { + case ScalaName => ??? + } + } +} |