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

Compile time assignments of runtime variables triggers assert #45

Open
Funkschy opened this issue Nov 30, 2020 · 0 comments
Open

Compile time assignments of runtime variables triggers assert #45

Funkschy opened this issue Nov 30, 2020 · 0 comments

Comments

@Funkschy
Copy link

If you assign a runtime variable inside a #run directive, it triggers an assert and crashes the compiler

@entry fn main() {
    var i = 0
    #run(
        i = 34 // uwu
    )
}

this results in

compiler assertion at source/fir/interp/interpreter.cpp:1369, cause:
'ret' evaluated to false


there were errors, compilation cannot continue
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

No branches or pull requests

1 participant