summaryrefslogtreecommitdiff
path: root/test/files/neg/dbldef.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2010-10-21 08:05:55 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2010-10-21 08:05:55 +0000
commit81443d309e6af3f7daa51ddb323e19818334d784 (patch)
treeb58ba0fedfafcc8938dc4674254f29234c468012 /test/files/neg/dbldef.check
parent2b417333e336d66c97a6b6175a30aa086ba6d45b (diff)
downloadscala-81443d309e6af3f7daa51ddb323e19818334d784.tar.gz
scala-81443d309e6af3f7daa51ddb323e19818334d784.tar.bz2
scala-81443d309e6af3f7daa51ddb323e19818334d784.zip
splitting up scopes test into two parts.
the behavior on the IBM VMs is really funny. when running the scopes test individually (using partest or ant), it succeeds. even when running all the neg tests with ant it succeeds. but when running the whole test suite, it fails. no review.
Diffstat (limited to 'test/files/neg/dbldef.check')
-rw-r--r--test/files/neg/dbldef.check14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/neg/dbldef.check b/test/files/neg/dbldef.check
new file mode 100644
index 0000000000..3ee63475e4
--- /dev/null
+++ b/test/files/neg/dbldef.check
@@ -0,0 +1,14 @@
+dbldef.scala:1: error: x is already defined as value x
+case class test0(x: Int, x: Float)
+ ^
+dbldef.scala:1: error: type mismatch;
+ found : Float
+ required: Int
+case class test0(x: Int, x: Float)
+ ^
+dbldef.scala:1: error: type mismatch;
+ found : Float
+ required: Int
+case class test0(x: Int, x: Float)
+ ^
+three errors found