early throw on cyclic graphs
This commit is contained in:
parent
45c5502f90
commit
3532c7174f
@ -15,6 +15,7 @@ end
|
||||
|
||||
function interp(ctx, f, xs...)
|
||||
g = graph(f)
|
||||
g ≠ nothing && iscyclic(g) && error("Can't interpret cyclic graph")
|
||||
@icatch(ctx, g ≠ nothing ?
|
||||
interpret(ctx, reifyparams(g), xs...) :
|
||||
f(xs...))
|
||||
|
Loading…
Reference in New Issue
Block a user