Nim icon indicating copy to clipboard operation
Nim copied to clipboard

assignment to a compileTime `var` crash compiler when js

Open litlighilit opened this issue 8 months ago • 1 comments

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: 1a7bc6d878ff04709ebb1002010fd53b4ba02179 active boot switches: -d:release -d:nimUseLinenoise

Current Output

(compilation aborts)

Expected Output

(none)

Known Workarounds

No response

Additional Information

No response

litlighilit avatar Feb 16 '25 19:02 litlighilit