ceylon/ceylon-spec — Issue #126: setterDeclaration in Ceylon.g differs from the Language Specification
Author: ponomandr
Created: 2012-01-05 18:24:21+00:00
State: open

The Language Spec:

> AttributeSetter: "assign" MemberName Block

The Grammar (Ceylon.g):

> setterDelaration: ASSIGN memberNameDeclaration ( block | SEMICOLON )
> memberNameDeclaration: memberName typeName

I can see at least 2 differences:
1. Specification expects a member name only, but grammar expects both member name and type.
2. Specification expects Block, whether grammar expects ether block or semicolon.

By the way,
It would be great if both the Ceylon.g and The Language Spec use the same names.