This commit is contained in:
flywind 2021-10-13 20:57:25 +08:00 • committed by GitHub
commit 2ac3ba713b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2076,7 +2076,10 @@ proc processMagicType(c: PContext, m: PSym) =
setMagicType(c.config, m, tySequence, szUncomputedSize) setMagicType(c.config, m, tySequence, szUncomputedSize)
if optSeqDestructors in c.config.globalOptions: if optSeqDestructors in c.config.globalOptions:
incl m.typ.flags, tfHasAsgn incl m.typ.flags, tfHasAsgn
assert c.graph.sysTypes[tySequence] == nil if defined(nimsuggest) or c.config.cmd == cmdCheck: # bug #18985
discard
else:
assert c.graph.sysTypes[tySequence] == nil
c.graph.sysTypes[tySequence] = m.typ c.graph.sysTypes[tySequence] = m.typ
of mOrdinal: of mOrdinal:
setMagicIntegral(c.config, m, tyOrdinal, szUncomputedSize) setMagicIntegral(c.config, m, tyOrdinal, szUncomputedSize)