fixes #11205
This commit is contained in:
parent
bcccc7dec8
commit
8bb1a6b041
4 changed files with 120 additions and 1 deletions
|
|
@ -114,3 +114,8 @@ when not defined(nimV2):
|
|||
if x == nil: return false
|
||||
x = x.base
|
||||
return true
|
||||
|
||||
when defined(nimV2):
|
||||
proc nimFieldDiscriminantCheckV2(oldDiscVal, newDiscVal: uint8) {.compilerProc.} =
|
||||
if oldDiscVal != newDiscVal:
|
||||
sysFatal(FieldError, "assignment to discriminant changes object branch")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue