提交 fa66f3ec 编写于 作者: T Tim Chevalier

[tests] Add passing test

Closes #3683
上级 77e54988
trait Foo {
fn a() -> int;
fn b() -> int {
self.a() + 2
}
}
impl int: Foo {
fn a() -> int {
3
}
}
fn main() {
assert(3.b() == 5);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册