mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 04:27:44 +00:00
tabling declared() stuff
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
discard """
|
||||
output:'''false'''
|
||||
"""
|
||||
|
||||
{.experimental: "codeReordering".}
|
||||
|
||||
proc x() =
|
||||
echo(declared(foo))
|
||||
|
||||
var foo = 4
|
||||
|
||||
x() # "false", the same as it would be with code reordering OFF
|
||||
Reference in New Issue
Block a user