This commit is contained in:
flywind 2020-11-05 18:31:44 +08:00 • committed by GitHub
commit fdd25ed19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)