Fix broken struct type inference.
This commit is contained in:
13
examples/basic/struct0002.ngr
Normal file
13
examples/basic/struct0002.ngr
Normal file
@@ -0,0 +1,13 @@
|
||||
struct Point {
|
||||
x: u64;
|
||||
y: u64;
|
||||
}
|
||||
|
||||
test = Point {
|
||||
x: 1;
|
||||
y: 2;
|
||||
};
|
||||
|
||||
foo = test.x;
|
||||
|
||||
print foo;
|
||||
Reference in New Issue
Block a user