(cherry picked from commit fdd25ed19c)
This commit is contained in:
flywind
2020-11-05 18:31:44 +08:00
committed by narimiran
parent c2263c685f
commit b100c67515

View File

@@ -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)