summaryrefslogtreecommitdiff
path: root/test/files/neg/t963.check
blob: 85b64b0bb581b84003ea83c4c3e8b4d5413c3d6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
t963.scala:10: error: type mismatch;
 found   : AnyRef{def x: Integer}
 required: AnyRef{val x: Integer}
  val y2 : { val x : java.lang.Integer  } = new { def x = new java.lang.Integer(r.nextInt) }
                                            ^
t963.scala:14: error: stable identifier required, but y3.x.type found.
  val w3 : y3.x.type = y3.x
               ^
t963.scala:17: error: stable identifier required, but y4.x.type found.
  val w4 : y4.x.type = y4.x
               ^
three errors found