definite assignment analysis for let (#21024)
* draft for let daa * patch * fixes bugs * errors for global let variable reassignments * checkpoint * out param accepts let * add more tests * add documentation * merge tests
This commit is contained in:
parent
6d8cf25bd7
commit
b2c7019006
9 changed files with 144 additions and 30 deletions
5
tests/init/tlet_uninit2.nim
Normal file
5
tests/init/tlet_uninit2.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "'let' symbol requires an initialization"
|
||||
"""
|
||||
|
||||
let x: int
|
||||
Loading…
Add table
Add a link
Reference in a new issue