fork download
  1. class Foo[T] {
  2. def apply[U](bar: T => (U => Unit)): Unit = { println("success") }
  3. }
  4.  
  5. class Bar {
  6. def setBar(bar: String): Unit = {}
  7. }
  8.  
  9. object Main extends App {
  10. // your code goes here
  11. val foo = new Foo[Bar]();
  12. foo.apply(bar => bar.setBar);
  13. }
Success #stdin #stdout 0.38s 382016KB
stdin
Standard input is empty
stdout
success