summaryrefslogtreecommitdiff
path: root/test/files/neg/scopes.check
blob: 09b1bcbdb69bec28c523be6b80b371d62f74e752 (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
26
27
28
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: t is already defined as type t
  type t = float
       ^
scopes.scala:7: error: x is already defined as value x
  val x: float = .0f
      ^
scopes.scala:10: error: y is already defined as value y
    val y: float = .0f
        ^
scopes.scala:13: error: x is already defined as value x
  def f1(x: int, x: float) = x
                 ^
scopes.scala:14: error: y is already defined as value y
  def f2(x: int)(y: int, y: float) = x + y
                         ^
scopes.scala:15: error: x is already defined as value x
  (x: int, x: float) => x
            ^
scopes.scala:17: error: x is already defined as value x
    case x::x => x
            ^
9 errors found