aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t3898.scala
blob: ab47bbd877ba49f4e1f47dc8698bad9a8874c0ca (plain) (tree)
1
2
3
4
5
6





                                             
trait Atomic[@specialized(Boolean) T] {
  def x: T

  def f(fn: T => T): Boolean = f(fn(x), true)
  def f[R](a: T, b: R): R = b
}