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

Fix overriding runtime-initialized vars with constants #2176

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

wixoaGit
Copy link
Member

This code now correctly sets /a/b's var to null:

/a
    var/foo = list(1, 2)
/a/b
    foo = null

It was previously kept as list(1, 2) because the init proc was left as-is.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Jan 21, 2025
@wixoaGit wixoaGit merged commit ac01e7c into OpenDreamProject:master Jan 21, 2025
7 checks passed
@wixoaGit wixoaGit deleted the fix_constant_overrides branch January 21, 2025 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant