aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2016-07-31 17:30:46 -0700
committerGitHub <noreply@github.com>2016-07-31 17:30:46 -0700
commita0ad3f1d020cc3f3f37bc887874517ace670bf52 (patch)
tree244c2d44db0ccfbcd5d79d55fe1326da7e934e32 /tests
parented05cbaaf0192a44c0b934eb94215dceff4f3dbe (diff)
parent3c3b32346f2c4eafe26cc9659b41ae50b0316b92 (diff)
downloaddotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.tar.gz
dotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.tar.bz2
dotty-a0ad3f1d020cc3f3f37bc887874517ace670bf52.zip
Merge pull request #1398 from dotty-staging/fix-#1269
Fix #1269: Typing and pattern matching of nested subclasses
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i1269.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/i1269.scala b/tests/pos/i1269.scala
new file mode 100644
index 000000000..c0b56e1ea
--- /dev/null
+++ b/tests/pos/i1269.scala
@@ -0,0 +1,16 @@
+trait Module {
+ sealed abstract class Tree
+
+ case class LetL() extends Tree
+
+ object O {
+ case class LetR() extends Tree
+ }
+}
+
+class Patmat(val module: Module) {
+ def patmat(tree: module.Tree) = tree match {
+ case module.LetL() =>
+ case module.O.LetR() =>
+ }
+}