You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and at the point of parsing the [ it isn't known whether is is a definition or declaration (right?)
One could for instance parse to the end of the line and check for a ":" when encountering the [ in a cdef (and store info to coordinate this in the parsing context) -- as the two cases can be seperated on whether it is a definition or not.
Another option is to use a "TrailingBracketTypeNode" rather than let the parser resolve it.
The parser doesn't allow
This is because the parser has to support
and at the point of parsing the [ it isn't known whether is is a definition or declaration (right?)
One could for instance parse to the end of the line and check for a ":" when encountering the [ in a cdef (and store info to coordinate this in the parsing context) -- as the two cases can be seperated on whether it is a definition or not.
Another option is to use a "TrailingBracketTypeNode" rather than let the parser resolve it.
Migrated from http://trac.cython.org/ticket/61
The text was updated successfully, but these errors were encountered: