blob: 49cdbf9232cae35da3d1d5c7c6e7b289da5fdaa5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
P_2.scala:15: error: reference to x is ambiguous;
it is both defined in value <local Y> and imported subsequently by
import q.X._
println(s"L15: $x") // reference to `x' is ambiguous here
^
P_2.scala:21: error: reference to y is ambiguous;
it is imported twice in the same scope by
import p.X._
and import X.y
println(s"L21: $y") // reference to `y' is ambiguous here
^
two errors found
|