Skip to content

Commit

Permalink
Update chcks.nim (#19540)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockcavera committed Feb 17, 2022
1 parent b2c5d7b commit 30e9f23
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 30e9f23

Please sign in to comment.