class Foo { init(a, b) { print "init"; // out: init this.a = a; this.b = b; } } var foo = Foo(1, 2); print foo.a; // out: 1 print foo.b; // out: 2