blob: 891267ddd44da61edc2e3d9b0367f6e80416f3d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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 f1(x: int, x: float) = x
^
scopes.scala:12: error: y is already defined as value 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
^
scopes.scala:15: error: x is already defined as value x
case x::x => x
^
8 errors found
|