-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inheritance on self doesn't work right in default methods #3979
Comments
I've almost fixed this -- I just ran into another incomplete bit of code in trans that I want to fix too. |
Add a new method_super origin for supertrait methods. Also make coherence create a table that maps pairs of trait IDs and self types to impl IDs, so that it's possible to check a supertrait method knowing only its index in its trait's methods (without knowing all supertraits for a given trait). As per rust-lang#3979
@catamorphism : there's a test for this, issue-3979-generics.rs. It had bit-rotted a bit, but after replacing impl Ty : Tr with impl Tr for Ty, I'm now getting an ICE. Should I re-open this bug, or is this an unrelated bug? |
@jbclements Reopen or open a new bug if you're not sure it's the same ICE, either way :-) |
On Apr 18, 2013, at 2:39 PM, Tim Chevalier wrote:
Decisions, darn it, I want decisions! :) Ah well. John |
Well, I didn't see the error, and recreating it would require effort ;-) |
(so I don't know whether or not it's the same error) |
…fJung tail_calls: add test ensuring local vars are indeed gone Ensure that local variables get deallocated before the callee gets tail-called.
This should work:
It fails to typecheck:
The text was updated successfully, but these errors were encountered: