fork download
  1. object Main extends App {
  2. def f(x: { def x: Int; def y: String }) = {
  3. println(x.x)
  4. println(x.y)
  5. }
  6.  
  7. f(new { val x = 1; val y = "fuck you" })
  8. }
  9.  
Success #stdin #stdout 0.37s 382080KB
stdin
Standard input is empty
stdout
1
fuck you