summaryrefslogtreecommitdiff
path: root/test/files/neg/bug128_129.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug128_129.scala')
-rw-r--r--test/files/neg/bug128_129.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/bug128_129.scala b/test/files/neg/bug128_129.scala
new file mode 100644
index 0000000000..afe4b8f332
--- /dev/null
+++ b/test/files/neg/bug128_129.scala
@@ -0,0 +1,15 @@
+object Test {
+ def foo:int = {
+ val x | 1 = 2; // not allowed
+ x
+ }
+
+ class Bar {
+ case class PT(x: PT) {
+ def foo(x: Any) = x match {
+ case PT(a@PT(a)) => // not allowed
+ }
+ }
+ }
+
+}