14 lines
186 B
Mojo
Generated
14 lines
186 B
Mojo
Generated
struct Celsius(Copyable):
|
|
var deg: Int
|
|
|
|
def __init__(out self, deg: Int):
|
|
self.deg = deg
|
|
|
|
|
|
def report(t: Celsius):
|
|
print("temp:", t.deg)
|
|
|
|
|
|
def main():
|
|
report(25)
|