From 95eaa29b50cd8de56c798a6461d933d763a946fc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 25 Jul 2007 14:23:37 +0000 Subject: fixed bug 1241 --- test/files/pos/bug1241.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/bug1241.scala (limited to 'test/files/pos') diff --git a/test/files/pos/bug1241.scala b/test/files/pos/bug1241.scala new file mode 100644 index 0000000000..333e6c5490 --- /dev/null +++ b/test/files/pos/bug1241.scala @@ -0,0 +1,8 @@ +object test extends Application { + // more.. + type T = { def hello() } + //val x4 = new AnyRef { def hello() { println("4") } } // ok! + val x4: T = new { def hello() { println("4") } } // error! + x4.hello() + // more.. +} -- cgit v1.2.3