diff --git a/lib/stdlib.ngs b/lib/stdlib.ngs index daf474e6..89f9fe27 100644 --- a/lib/stdlib.ngs +++ b/lib/stdlib.ngs @@ -8030,8 +8030,8 @@ section "retry() and friends" { fail_cb={throw RetryFail()}, body:Fun={throw RetryBodyMissing("'body' argument missing in retry()")} ) { - guard sleep =~ AnyOf(Int, Iter) - sleep_iter = if sleep is Int then ConstIter(sleep) else sleep + guard sleep =~ AnyOf(Num, Iter) # Can't move to parameters as Iter is not defined at this point + sleep_iter = if sleep is Num then ConstIter(sleep) else sleep result = null # otherwise it will be local to try { ... } for(i;times) { n = i + 1