diff options
Diffstat (limited to 'test/files/neg/scopes.check')
-rw-r--r-- | test/files/neg/scopes.check | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/files/neg/scopes.check b/test/files/neg/scopes.check index 152c820317..b6712c1a8c 100644 --- a/test/files/neg/scopes.check +++ b/test/files/neg/scopes.check @@ -8,15 +8,18 @@ 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 - ^ + val y: float = .0f + ^ scopes.scala:11 error: x is already defined as value x - def params(x: int, x: float) = x - ^ + def f1(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 - ^ + def f2(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 +scopes.scala:15 error: x is already defined as value x + case x::x => x + ^ +8 errors found |