aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t6335.scala
blob: eb052db1998a962670b43dbd06f3d7fc90087ee7 (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
object E extends Z {
  def X = 3
  implicit class X(val i: Int) {
    def xx = i
  }

  def Y(a: Any) = 0
  object Y
  implicit class Y(val i: String) { def yy = i }

  implicit class Z(val i: Boolean) { def zz = i }
}

trait Z {
    def Z = 0
}

object Test {
    import E._
    0.xx

    "".yy

  true.zz
}