summaryrefslogtreecommitdiff
path: root/test/files/pos/t6976/Exts_1.scala
blob: 9b3a69edd9aaffd02448b1fd5c0ce3e7a8cc539d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Exts {
  implicit class AnyExts[T](val o: T) extends AnyVal {
    def moo = "moo!"
  }
}

trait Exts {
  import language.implicitConversions
  implicit def AnyExts[T](o: T) = Exts.AnyExts(o)
}