summary refs log tree commit diff
path: root/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs
blob: 4c15661e8f085d35c617b2fa2266425b3945ee32 (plain)
1
2
3
4
5
6
7
8
impl methods for @@uint {
    fn double() -> uint { **self * 2u }
}

fn main() {
    let x = @@@@@3u;
    assert x.double() == 6u;
}