diff options
Diffstat (limited to 'tests/pending/pos/pos-bug1241.scala')
-rw-r--r-- | tests/pending/pos/pos-bug1241.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pending/pos/pos-bug1241.scala b/tests/pending/pos/pos-bug1241.scala new file mode 100644 index 000000000..1038dc304 --- /dev/null +++ b/tests/pending/pos/pos-bug1241.scala @@ -0,0 +1,8 @@ +object test extends App { + // more.. + type T = { def hello(): Unit } + //val x4 = new AnyRef { def hello() { println("4") } } // ok! + val x4: T = new { def hello(): Unit = { println("4") } } // error! + x4.hello() + // more.. +} |