From the language specification[0]:
> This code is not legal, since all three statements occur in the initializer section of the class body:
class Point() {
Float x => y; //compiler error: y is not referenceable
Float y => x;
Float->Float xy = x->y;
}
> However, this code is legal, since the statements occur in the declaration section of the class body: class Point() {
Float x => y;
Float y => x;
}
If I'm reading things correctly, class declarations are split up into "initializer" and "declaration", with only an implicit split (the last statement that is not allowed in the declaration section). This seems very awkward.0: http://ceylon-lang.org/documentation/1.0/spec/html_single/#r...