Remove immediate pragma (#11308)
* remove immediate from tests * remove immediate from the compiler
This commit is contained in:
parent
eb471acffb
commit
5b27b263fd
22 changed files with 53 additions and 116 deletions
|
|
@ -3,10 +3,10 @@ discard """
|
|||
file: "ttempl2.nim"
|
||||
line: 18
|
||||
"""
|
||||
template declareInScope(x: untyped, t: typeDesc): untyped {.immediate.} =
|
||||
template declareInScope(x: untyped, t: typeDesc): untyped =
|
||||
var x: t
|
||||
|
||||
template declareInNewScope(x: untyped, t: typeDesc): untyped {.immediate.} =
|
||||
template declareInNewScope(x: untyped, t: typeDesc): untyped =
|
||||
# open a new scope:
|
||||
block:
|
||||
var x: t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue