Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scope generated checks in a way that prevents them from being named #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

the10thWiz
Copy link
Collaborator

I found out that you can scope items inside a constant's declaration block, which makes it impossible to refer to them outside of the block. I adjusted codegen to output checks like this:

const _: () = {
    /* checks */
};

Since it's impossible to refer to anything in the constant's declaration block, it cannot possibly conflict with anything the user wishes to declare. I also took a moment to change the module name to be easier to read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant