summaryrefslogtreecommitdiff
path: root/test/files/run/t5134.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-02-18 11:59:29 +0100
committerJason Zaugg <jzaugg@gmail.com>2014-02-18 11:59:29 +0100
commitde7abde4c39d1c3cab4d030871c760c9a33fad0e (patch)
treedda308390b5b6cd01e93ec4875db98bc1eabef7b /test/files/run/t5134.scala
parent8536c3148d5a6283b580a905ca4231e852525d59 (diff)
downloadscala-de7abde4c39d1c3cab4d030871c760c9a33fad0e.tar.gz
scala-de7abde4c39d1c3cab4d030871c760c9a33fad0e.tar.bz2
scala-de7abde4c39d1c3cab4d030871c760c9a33fad0e.zip
SI-5134 Test case for fixed DelayedInit / structural type bug
As with SI-5655, this started working in b4fbb7be0e by @magarciaEPFL
Diffstat (limited to 'test/files/run/t5134.scala')
-rw-r--r--test/files/run/t5134.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/t5134.scala b/test/files/run/t5134.scala
new file mode 100644
index 0000000000..384442fda2
--- /dev/null
+++ b/test/files/run/t5134.scala
@@ -0,0 +1,8 @@
+import language._
+
+object Test extends App {
+ def b = new AnyRef {
+ def a= ()
+ }
+ b.a match { case _ => () }
+}