Files
pplus-library/mojo/corpus/quest/starters/MQ_604.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

16 lines
312 B
Mojo
Generated

struct CommandQueue(Copyable):
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)