6 lines
170 B
Mojo
6 lines
170 B
Mojo
# probe: is List[Int](1, 2, 3) a constructor? (no: only brackets make a list of values)
|
|
# expect: compile-error
|
|
def main():
|
|
var xs = List[Int](1, 2, 3)
|
|
print(xs)
|