[Spec Deviation] Support declaring listeners without the type-descriptor #18200
Labels
Area/Compiler
Points/0.5
Equivalent to half a day effort
Spec/2019R3
Related to Ballerina Spec 2019R3
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/SpecDeviation
Description:
According to the spec
A listener-decl defines a module listener.
A module-listener can be referenced by a variable-reference, but cannot be modified. It is this similar to a final variable declaration, except that it also registers the value with the module as a listener.
A module listener has a static type, which must be a subtype of the Listener type. If the type-descriptor is present it specifies the module listener's static type; if it is not present, the the static type of the listener is the static type of expression.
Steps to reproduce:
But the current implementation does not support declaring listeners without the type-descriptor.
Affected Versions:
The text was updated successfully, but these errors were encountered: