summaryrefslogtreecommitdiff
path: root/test/files/neg/t6455.scala
blob: 22e4c30fdd75420dee9f8d556a84e5e7b2be48d5 (plain) (blame)
1
2
3
4
5
6
object O { def filter(p: Int => Boolean): O.type = this }

class Test {
  // should not compile because we no longer rewrite withFilter => filter
  O.withFilter(f => true)
}