From de7abde4c39d1c3cab4d030871c760c9a33fad0e Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Tue, 18 Feb 2014 11:59:29 +0100 Subject: SI-5134 Test case for fixed DelayedInit / structural type bug As with SI-5655, this started working in b4fbb7be0e by @magarciaEPFL --- test/files/run/t5134.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/t5134.scala 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 _ => () } +} -- cgit v1.2.3