Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Nov 5, 2020
1 parent 4c19c5d commit fdd25ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/pragmas/tcustom_pragma.nim
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,14 @@ block:
let x = RefType2()
for fieldName, fieldSym in fieldPairs(x[]):
doAssert hasCustomPragma(fieldSym, myCustomPragma)

# bug 8457
block:
template world {.pragma.}

type
Hello = ref object
a: float32
b {.world.}: int

discard Hello(a: 1.0, b: 12)

0 comments on commit fdd25ed

Please sign in to comment.