Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Implied bounds, second take #82
This is a full implementation of implied bounds as well as enforcing WF requirements on impls and type declarations.
The rules for WF requirements on traits are detailed in #12 (and in the code). The rules for types are much more simple (no need for co-recursion but we still have two predicates,
I was not greatly inspired for the tests, so one can feel free to add some more.
@scalexm ok so the changes to make then are:
Do you think you'll have time for that? Do you want me to do it? We should probably make more tests but I'm not inclined to block on that.
I read over the changes more thoroughly. Everything looks great. I looked briefly at the on-demand test was failing; for some reason it is now creating
However, I did notice one thing. It seems like you are treating
The intention is that "projection eq" is the "normal" rule, with
Anyway, I pushed a final commit with a test that fails as a result -- but I think is expected to pass.