summaryrefslogtreecommitdiff
path: root/test/files/neg/scopes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/scopes.scala')
-rw-r--r--test/files/neg/scopes.scala14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/files/neg/scopes.scala b/test/files/neg/scopes.scala
index 0083101b00..f5e60b72b6 100644
--- a/test/files/neg/scopes.scala
+++ b/test/files/neg/scopes.scala
@@ -4,11 +4,15 @@ object test1 {
val x: int = 0
val x: float = .0f
{
- val y: int = 0
- val y: 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
+ def f1(x: int, x: float) = x
+ def f2(x: int)(y: int, y: float) = x + y
(x: int, x: float) => x
+ List() match {
+ case x::x => x
+ case Nil => Nil
+ }
}