mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
Update chcks.nim (#19540)
This commit is contained in:
@@ -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 & "'")
|
||||
|
||||
Reference in New Issue
Block a user