12 lines
180 B
Mojo
Generated
12 lines
180 B
Mojo
Generated
struct Reading(Copyable):
|
|
var v: Int
|
|
|
|
def __init__(out self, v: Int):
|
|
self.v = v
|
|
|
|
|
|
def main():
|
|
var a = Reading(5)
|
|
var b = a
|
|
print("a:", a.v, "b:", b.v)
|