From 69fe3a932f30a2afc055357912a42e082bad4c48 Mon Sep 17 00:00:00 2001 From: Sergiu-Vlad Bonta Date: Wed, 6 Feb 2019 10:24:56 +0200 Subject: [PATCH] Make raiseIndexError non-generic. Generic compiler procs are impossible. --- lib/system/jssys.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim index fe499a46845d2..20a46f1b90c68 100644 --- a/lib/system/jssys.nim +++ b/lib/system/jssys.nim @@ -159,8 +159,8 @@ proc raiseDivByZero {.exportc: "raiseDivByZero", noreturn, compilerProc.} = proc raiseRangeError() {.compilerproc, noreturn.} = raise newException(RangeError, "value out of range") -proc raiseIndexError[T](i, a, b: T) {.compilerproc, noreturn.} = - raise newException(IndexError, formatErrorIndexBound(i, a, b)) +proc raiseIndexError(i, a, b: int) {.compilerproc, noreturn.} = + raise newException(IndexError, formatErrorIndexBound(int(i), int(a), int(b))) proc raiseFieldError(f: string) {.compilerproc, noreturn.} = raise newException(FieldError, f & " is not accessible")