fork download
  1. object Main extends App {
  2. val t = new Test
  3. println(t.foor)
  4. }
  5.  
  6. class Test{
  7. var foo = 0
  8. val bar = 0
  9. def foor_=(n:Int) = {foo = n}
  10. def foor = foo
  11. }
Success #stdin #stdout 0.37s 322240KB
stdin
Standard input is empty
stdout
0