fix #19266; allow reassign discriminant field (#19567)

* add inUncheckedAssignSection

* add one more test
This commit is contained in:
flywind 2022-02-26 03:33:28 +08:00 • committed by GitHub
commit 9c17a32e0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 2 deletions

View file

@ -99,6 +99,7 @@ type
withinTryWithExcept*: int # required for goto based exception handling
withinBlockLeaveActions*: int # complex to explain
sigConflicts*: CountTable[string]
inUncheckedAssignSection*: int
TTypeSeq* = seq[PType]
TypeCache* = Table[SigHash, Rope]