1 2 3 4 5 6 7
object Test { def f(g:{val update:Unit}) = g.update def main(args: Array[String]): Unit = { } }