Created
March 15, 2012 23:20
-
-
Save nikomatsakis/2047617 to your computer and use it in GitHub Desktop.
should this compile?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iface i { fn foo() -> self<>; } | |
fn foo<T:i>(v: T) -> T { | |
ret v.foo(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yields: