aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6455.scala
blob: f62be3eb0dad600d1d620eeaaea541d3c1d8ee1a (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 under -Xfuture
  O.withFilter(f => true)
}