-
Notifications
You must be signed in to change notification settings - Fork 478
Description
As far as I can tell, the text format spec doesn’t explain how a module’s initial identifier context should reach the body of a function definition, which I assume it must somehow.
The func
production synthesises an identifier context typeuse
) with a context containing the function definition’s local variable identifiers, so the inherited attribute typeuse
production itself also discards typeuse
looks up the definition of the function’s type.
It’s therefore unclear how the remaining contents of typeuse
production does mention “the updated identifier context including possible parameter identifiers” (emphasis mine), which perhaps implies that
How is this intended to work? Can the spec be updated to clarify?