class c1 { let x: T; new(x: T) {self.x = x;} fn f1(x: int) { } } impl i1 for c1 { fn f2(x: int) { } } fn main() { c1::(3).f1(4); c1::(3).f2(4); }