Remove expr/stmt (#5857)
This commit is contained in:
parent
52ff244d5d
commit
000b8afd26
168 changed files with 497 additions and 529 deletions
|
|
@ -3,7 +3,7 @@ discard """
|
|||
"""
|
||||
|
||||
var x = 1
|
||||
template quantity(): stmt {.immediate.} =
|
||||
template quantity() =
|
||||
# Causes internal error in compiler/sem.nim
|
||||
proc unit*(x = 1.0): float = 12
|
||||
# Throws the correct error: redefinition of 'x'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue