add struct intialization

This commit is contained in:
Luna 2019-08-26 11:59:32 -03:00
parent 19fd9daebf
commit c2499f96c9
5 changed files with 85 additions and 5 deletions

View file

@ -18,6 +18,7 @@ fn main(a int) int {
println(50)
}
a && b
a || b
@ -35,10 +36,11 @@ fn main(a int) int {
return 23
//p := Point{
// x: 10
// y: 20
//}
p := Point.{
x: 10
y: 20
}
//println(p.x)
}