struct CommandQueue(Copyable, Movable): var depth: Int def __init__(out self, depth: Int): self.depth = depth def borrow_depth(ref self) -> ref [self] Int: return self.depth def main(): var q = CommandQueue(4) ref d = q.borrow_depth() d = 10 print("queue depth:", q.depth)