summaryrefslogblamecommitdiff
path: root/test/files/pos/t4275.scala
blob: 1938aceadc7d20ad13d5876ccb17bb7f0c95ae9b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13

                              
 









                                            
object Test {
  def f = "abc".count(_ > 'a')

  class A {
    private val count: Int = 0
  }
  class B extends A { }
  object B {
    implicit def b2seq(x: B): Seq[Int] = Nil

    def f = (new B) count (_ > 0)
  }
}