diff options
Diffstat (limited to 'test/pending/neg/scopes.scala')
-rw-r--r-- | test/pending/neg/scopes.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/pending/neg/scopes.scala b/test/pending/neg/scopes.scala new file mode 100644 index 0000000000..e38a0a3d2e --- /dev/null +++ b/test/pending/neg/scopes.scala @@ -0,0 +1,20 @@ +case class test0(x: int, x: float) + +object test1 { + type t = int + type t = float + val x: int = 0 + val x: float = .0f; + { + val y: int = 0 + val y: float = .0f + () + } + def f1(x: int, x: float) = x + def f2(x: int)(y: int, y: float) = x + y + val closure = (x: int, x: float) => x + List() match { + case x::x => x + case Nil => Nil + } +} |