summaryrefslogtreecommitdiff
path: root/test/files/neg/bug1241.check
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2009-06-02 12:05:28 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2009-06-02 12:05:28 +0000
commitda8b3a4b9d5010d20daeac76aeb13560035b63cb (patch)
treee5b202d7c7cbe9e6d1277b29b84866917d3bc07f /test/files/neg/bug1241.check
parentf5f18249a168676c478e020188e865d3548a9aa7 (diff)
downloadscala-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.check')
-rw-r--r--test/files/neg/bug1241.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/bug1241.check b/test/files/neg/bug1241.check
new file mode 100644
index 0000000000..2a892a274c
--- /dev/null
+++ b/test/files/neg/bug1241.check
@@ -0,0 +1,7 @@
+bug1241.scala:5: error: class type required but AnyRef{def hello(): Unit} found
+ val x4 = new T { def hello() { println("4") } } // error!
+ ^
+bug1241.scala:5: error: AnyRef{def hello(): Unit} does not have a constructor
+ val x4 = new T { def hello() { println("4") } } // error!
+ ^
+two errors found