diff options
author | Martin Odersky <odersky@gmail.com> | 2007-07-25 14:23:37 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-07-25 14:23:37 +0000 |
commit | 95eaa29b50cd8de56c798a6461d933d763a946fc (patch) | |
tree | a33342171c69455e661b27cb419748a9a852d533 /test/files/pos/bug1241.scala | |
parent | fd3697ed00c1bb3f454869627176bb388aecf9ee (diff) | |
download | scala-95eaa29b50cd8de56c798a6461d933d763a946fc.tar.gz scala-95eaa29b50cd8de56c798a6461d933d763a946fc.tar.bz2 scala-95eaa29b50cd8de56c798a6461d933d763a946fc.zip |
fixed bug 1241
Diffstat (limited to 'test/files/pos/bug1241.scala')
-rw-r--r-- | test/files/pos/bug1241.scala | 8 |
1 files changed, 8 insertions, 0 deletions
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.. +} |