Skip to content

Commit

Permalink
Update chcks.nim (nim-lang#19540)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockcavera authored and PMunch committed Mar 28, 2022
1 parent d5fce52 commit 8c3455d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/system/chcks.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 & "'")
Expand Down

0 comments on commit 8c3455d

Please sign in to comment.