diff options
author | David MacIver <david.maciver@gmail.com> | 2008-10-29 23:33:12 +0000 |
---|---|---|
committer | David MacIver <david.maciver@gmail.com> | 2008-10-29 23:33:12 +0000 |
commit | 2156f3e306c63448f058e5bb2928240e41945652 (patch) | |
tree | 8541e321335fb912425a54924ac6a42a09083d0d /test/files/pos | |
parent | 8c770d3a7a6bab2cec5a2f13b725d4f43b35f2b3 (diff) | |
download | scala-2156f3e306c63448f058e5bb2928240e41945652.tar.gz scala-2156f3e306c63448f058e5bb2928240e41945652.tar.bz2 scala-2156f3e306c63448f058e5bb2928240e41945652.zip |
Added a test for #1107.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t1107/Object.scala | 10 | ||||
-rw-r--r-- | test/files/pos/t1107/Trait.scala | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/test/files/pos/t1107/Object.scala b/test/files/pos/t1107/Object.scala new file mode 100644 index 0000000000..0fd04695b1 --- /dev/null +++ b/test/files/pos/t1107/Object.scala @@ -0,0 +1,10 @@ +object O +{ + def d(t: Top) = + t match + { + case s: Sub => true + case _ => false + } +} + diff --git a/test/files/pos/t1107/Trait.scala b/test/files/pos/t1107/Trait.scala new file mode 100644 index 0000000000..cd213f9780 --- /dev/null +++ b/test/files/pos/t1107/Trait.scala @@ -0,0 +1,9 @@ +sealed trait Top +sealed trait Sub extends Top + +trait C +{ + private object P extends Sub +} + + |