* Fixes #9365 : let with exportC pragma in template. * Fix according to comments.
This commit is contained in:
parent
55cf971adf
commit
a6d4421241
2 changed files with 15 additions and 0 deletions
9
tests/template/template_pragmas.nim
Normal file
9
tests/template/template_pragmas.nim
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
proc output_x:string {.compileTime.} = "x"
|
||||
|
||||
template t =
|
||||
const x = output_x()
|
||||
let
|
||||
bar {.exportC:"bar" & x.} = 100
|
||||
|
||||
static:
|
||||
doAssert(compiles (t()))
|
||||
Loading…
Add table
Add a link
Reference in a new issue