blob: 91919976249c5a401dffae7100169650c0894cad (
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
|
scala> object x { def x={} }
defined object x
scala> import x._
import x._
scala> x
<console>:16: error: reference to x is ambiguous;
it is imported twice in the same scope by
import x._
and import x
x
^
scala> x
<console>:16: error: reference to x is ambiguous;
it is imported twice in the same scope by
import x._
and import x
x
^
scala> :quit
|