Skip to content
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

Default static method ICE #8654

Closed
msullivan opened this issue Aug 20, 2013 · 1 comment
Closed

Default static method ICE #8654

msullivan opened this issue Aug 20, 2013 · 1 comment

Comments

@msullivan
Copy link
Contributor

trait Foo { fn foo() -> uint {0} }

fn main() {
    Foo::foo();
}

ICEs during trans. This is very unfortunate, since it shouldn't pass typechecking. The problem is that the function isn't being given the right type.

This is basically a result of our type tables and method handling being a complete mess. I have an easy fix, but I'm not thrilled about it.

@ghost ghost assigned msullivan Aug 20, 2013
@msullivan
Copy link
Contributor Author

Part of #2794.

@msullivan msullivan removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant