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

15 lines
422 B
Mojo
Generated

struct RobotConfig(Copyable):
var max_speed: Int
var wheel_radius: Int
var num_sensors: Int
def __init__(out self, max_speed: Int, wheel_radius: Int, num_sensors: Int):
self.max_speed = max_speed
self.wheel_radius = wheel_radius
self.num_sensors = num_sensors
def main():
comptime field_count = reflect[RobotConfig].num_fields()
print("RobotConfig fields:", field_count)