diff options
Diffstat (limited to 'test/neg/bug128_129.scala')
-rw-r--r-- | test/neg/bug128_129.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/neg/bug128_129.scala b/test/neg/bug128_129.scala new file mode 100644 index 0000000000..afe4b8f332 --- /dev/null +++ b/test/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 + } + } + } + +} |