add struct field getting

This commit is contained in:
Luna 2019-08-26 13:15:08 -03:00
parent c2499f96c9
commit 0ecfb75081
4 changed files with 47 additions and 9 deletions

View file

@ -5,6 +5,11 @@ const (
Businesses = 4
)
struct Point {
x int
y int
}
fn main(a int) int {
1 + 2 + 3 + 4
1 + 1 * 1
@ -41,10 +46,5 @@ fn main(a int) int {
y: 20
}
//println(p.x)
println(p.x)
}
struct Point {
x int
y int
}