Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Aug 1, 2021
1 parent 169bafb commit 934850b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/pragmas/tpragmas_misc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,13 @@ block: # (partial fix) bug #15920
body
when false: # bug
template fun3(): int {.since2: (1, 3).} = 12

import macros # defines `proc genSym` symbol
#[
Error: undeclared identifier: 'ret`gensym0'
]#
block:
template fn() =
var ret {.gensym.}: int
discard ret
fn()

0 comments on commit 934850b

Please sign in to comment.