Classes
No constructor body
If body of the constructor is not given, values will be set to corresponding fields.
class Test {
co(x);
v x : int;
}
Generics
class Test<T> {
co(x);
v x : T;
}
Constructor body
class Test {
co(x) {
self.x = x;
}
v x : int;
}