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

Relatively pathed var and proc create bad DMObjectTree entries #2118

Open
ike709 opened this issue Dec 1, 2024 · 0 comments
Open

Relatively pathed var and proc create bad DMObjectTree entries #2118

ike709 opened this issue Dec 1, 2024 · 0 comments
Labels
bug Something isn't working Compiler Involves the OpenDream compiler

Comments

@ike709
Copy link
Collaborator

ike709 commented Dec 1, 2024

datum
    var
        foo = 1
        bar = 0
    proc
        meep()
            return foo
        beep()
            return bar

This code results in /datum/var and /datum/proc being added to DMObjectTree as types. This is due to Block() inside of DMParser.Statement().

@ike709 ike709 added bug Something isn't working Compiler Involves the OpenDream compiler labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Compiler Involves the OpenDream compiler
Projects
None yet
Development

No branches or pull requests

1 participant