diff --git a/compiler/ast.nim b/compiler/ast.nim index 5b08ea5e60..8a095311ed 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1270,7 +1270,8 @@ template transitionSymKindCommon*(k: TSymKind) = s[] = TSym(kindImpl: k, itemId: obj.itemId, magicImpl: obj.magicImpl, typImpl: obj.typImpl, name: obj.name, infoImpl: obj.infoImpl, ownerFieldImpl: obj.ownerFieldImpl, flagsImpl: obj.flagsImpl, astImpl: obj.astImpl, optionsImpl: obj.optionsImpl, positionImpl: obj.positionImpl, offsetImpl: obj.offsetImpl, - locImpl: obj.locImpl, annexImpl: obj.annexImpl, constraintImpl: obj.constraintImpl) + disamb: obj.disamb, locImpl: obj.locImpl, annexImpl: obj.annexImpl, constraintImpl: obj.constraintImpl, + instantiatedFromImpl: obj.instantiatedFromImpl) when hasFFI: s.cnameImpl = obj.cnameImpl when defined(nimsuggest): diff --git a/compiler/astdef.nim b/compiler/astdef.nim index 242cdf3ef6..6a7b4d7788 100644 --- a/compiler/astdef.nim +++ b/compiler/astdef.nim @@ -701,6 +701,7 @@ type PLib* = ref TLib TSym* {.acyclic.} = object # Keep in sync with ast2nif.nim + # Check `transitionSymKindCommon` in ast.nim when add a new field. itemId*: ItemId # proc and type instantiations are cached in the generic symbol state*: ItemState