Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

19 lines
361 B
Mojo
Generated

struct FrameCounter(Copyable):
var count: Int
def __init__(out self, count: Int):
self.count = count
def increment(self):
self.count += 1
def get(self) -> Int:
return self.count
def main():
var counter = FrameCounter(0)
counter.increment()
counter.increment()
print("Frames handled:", counter.get())