diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-06-02 12:05:28 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2009-06-02 12:05:28 +0000 |
commit | da8b3a4b9d5010d20daeac76aeb13560035b63cb (patch) | |
tree | e5b202d7c7cbe9e6d1277b29b84866917d3bc07f /test/files/neg/bug1241.scala | |
parent | f5f18249a168676c478e020188e865d3548a9aa7 (diff) | |
download | scala-da8b3a4b9d5010d20daeac76aeb13560035b63cb.tar.gz scala-da8b3a4b9d5010d20daeac76aeb13560035b63cb.tar.bz2 scala-da8b3a4b9d5010d20daeac76aeb13560035b63cb.zip |
reverted 17960, restored bug1241 w/ new check file
Diffstat (limited to 'test/files/neg/bug1241.scala')
-rw-r--r-- | test/files/neg/bug1241.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/bug1241.scala b/test/files/neg/bug1241.scala new file mode 100644 index 0000000000..68a2c963c4 --- /dev/null +++ b/test/files/neg/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 = new T { def hello() { println("4") } } // error! + x4.hello() + // more.. +} |