Update chcks.nim (#19540)

This commit is contained in:
rockcavera
2022-02-17 08:48:57 -03:00
committed by GitHub
parent b2c5d7b4ff
commit 30e9f23ec0

View File

@@ -29,7 +29,7 @@ proc raiseFieldError(f: string) {.compilerproc, noinline.} =
## remove after bootstrap > 1.5.1
sysFatal(FieldDefect, f)
when defined(gcdestructors):
when defined(nimV2):
proc raiseFieldError2(f: string, discVal: int) {.compilerproc, noinline.} =
## raised when field is inaccessible given runtime value of discriminant
sysFatal(FieldError, f & $discVal & "'")