summaryrefslogtreecommitdiff
path: root/test/pending/neg/scopes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/neg/scopes.scala')
-rw-r--r--test/pending/neg/scopes.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/neg/scopes.scala b/test/pending/neg/scopes.scala
new file mode 100644
index 0000000000..0083101b00
--- /dev/null
+++ b/test/pending/neg/scopes.scala
@@ -0,0 +1,14 @@
+case class test0(x: int, x: float)
+
+object test1 {
+ val x: int = 0
+ val x: float = .0f
+ {
+ val y: int = 0
+ val y: float = .0f
+ ()
+ }
+ def params(x: int, x: float) = x
+ def curried(x: int)(y: int, y: float) = x + y
+ (x: int, x: float) => x
+}