Skip to content
New issue

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

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

Already on GitHub? # to your account

assignment to a compileTime var crash compiler when js #24696

Open
litlighilit opened this issue Feb 16, 2025 · 1 comment
Open

assignment to a compileTime var crash compiler when js #24696

litlighilit opened this issue Feb 16, 2025 · 1 comment

Comments

@litlighilit
Copy link
Contributor

litlighilit commented Feb 16, 2025

Description

# e.nim
var b{.compileTime.}: int 
b=0

when targeting JavaScript backend,
compilation aborts with:

e.nim(3, 1) Error: internal error: symbol has no generated name: b

Nim Version

Nim Compiler Version 2.3.1 [Linux: amd64]
Compiled at 2025-02-13
Copyright (c) 2006-2025 by Andreas Rumpf

git hash: 1a7bc6d
active boot switches: -d:release -d:nimUseLinenoise

Current Output

(compilation aborts)

Expected Output

(none)

Known Workarounds

No response

Additional Information

No response

@litlighilit
Copy link
Contributor Author

!nim js

var b{.compileTime.}: int 
b=0

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

No branches or pull requests

1 participant