Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Conversation

azjezz
Copy link
Collaborator

@azjezz azjezz commented Dec 10, 2022

while self, static and parent shouldn't be allowed outside class scope, it's not possible for us to scope the attributes parser, as while parsing attributes, we don't know what follows them.

we can revert this once we have a constant expression parser, because static will always error in constant expressions, and the only place self and parent are valid outside of class scopes, is a constant expressions, not all expressions.

Signed-off-by: azjezz <azjezz@protonmail.com>
@azjezz azjezz merged commit 239bd69 into main Dec 10, 2022
@azjezz azjezz deleted the self-in-expr branch December 10, 2022 15:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant