type Counter { value: i32, fn increment(self: mutref) -> i32 { self.value = self.value + 1 return self.value } } interface Incrementable { fn increment(self: mutref) -> i32 } fn bump>(value: mutref) -> i32 { return T.increment(value) } pub fn main(world: World) -> Void raises { var counter: Counter = Counter { value: 41 } if bump(&mut counter) == 42 { check world.out.write("static interface mutref ok\n") } else { check world.out.write("static interface mutref broke\n") } }