summaryrefslogtreecommitdiff
path: root/test/files/neg/scopes.check
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-12-13 17:09:10 +0000
committermichelou <michelou@epfl.ch>2006-12-13 17:09:10 +0000
commit39eba8638cd03ee5de4c60bebb1248ff2e9379ca (patch)
treef8f5a53137c0531611fcd7b4922f0933bea7f24b /test/files/neg/scopes.check
parent95c592e4b78ab5186d8a4daf8aa65501513c5c11 (diff)
downloadscala-39eba8638cd03ee5de4c60bebb1248ff2e9379ca.tar.gz
scala-39eba8638cd03ee5de4c60bebb1248ff2e9379ca.tar.bz2
scala-39eba8638cd03ee5de4c60bebb1248ff2e9379ca.zip
moved from pending
Diffstat (limited to 'test/files/neg/scopes.check')
-rw-r--r--test/files/neg/scopes.check22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/files/neg/scopes.check b/test/files/neg/scopes.check
new file mode 100644
index 0000000000..152c820317
--- /dev/null
+++ b/test/files/neg/scopes.check
@@ -0,0 +1,22 @@
+scopes.scala:1 error: x is already defined as value x
+case class test0(x: int, x: float)
+ ^
+scopes.scala:2 error: x is already defined as value x
+
+^
+scopes.scala:5 error: x is already defined as value x
+ val x: float = .0f
+ ^
+scopes.scala:8 error: y is already defined as value y
+ val y: float = .0f
+ ^
+scopes.scala:11 error: x is already defined as value x
+ def params(x: int, x: float) = x
+ ^
+scopes.scala:12 error: y is already defined as value y
+ def curried(x: int)(y: int, y: float) = x + y
+ ^
+scopes.scala:13 error: x is already defined as value x
+ (x: int, x: float) => x
+ ^
+7 errors found