Add class support with constructors, fields, and methods
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
fn greet(name):
|
||||
println("Hola, " + name)
|
||||
x = "Hello world!"
|
||||
|
||||
greet("mundo!")
|
||||
fn suma(x, y):
|
||||
fn pow(z):
|
||||
return z * z
|
||||
return x + pow(y)
|
||||
|
||||
println(suma(2, 2))
|
||||
Reference in New Issue
Block a user