Skip to content

Commit de491ea

Browse files
committed
two more tests for method autoderef
1 parent 773a640 commit de491ea

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
impl methods for @@uint {
2+
fn double() -> uint { **self * 2u }
3+
}
4+
5+
fn main() {
6+
let x = @@@@@3u;
7+
assert x.double() == 6u;
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
impl methods for uint {
2+
fn double() -> uint { self * 2u }
3+
}
4+
5+
fn main() {
6+
let x = @@3u;
7+
assert x.double() == 6u;
8+
}

0 commit comments

Comments
 (0)