Improved type system
This commit is contained in:
@ -2,8 +2,8 @@ import mem
|
||||
import sys
|
||||
|
||||
struct Point {
|
||||
x Int
|
||||
y Int
|
||||
x int
|
||||
y int
|
||||
}
|
||||
|
||||
main() {
|
||||
@ -12,7 +12,7 @@ main() {
|
||||
delete(p)
|
||||
}
|
||||
|
||||
construct(x Int, y Int) -> *Point {
|
||||
construct(x int, y int) -> *Point {
|
||||
p := new(Point)
|
||||
p.x = x
|
||||
p.y = y
|
||||
|
Reference in New Issue
Block a user