Closed apoelstra closed 2 months ago
Reordered commits and rewrote the regression test to use the human-readable encoding. Conveniently with the human-readable encoding I can test both the bind error and the occurs-check error at once, since it attempts to continue after the first error.
This limit may still be too high -- I think you can output a 2^64 sized type which will wreck any terminal. But at least it's finite now.
Every instance of
_iter
methods called on an incomplete type (in the types/ module anyway) now has a maximum depth on it, which should eliminate all the places where we might loop forever with incomplete types.Fixes #177