mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
struct field writes
This commit is contained in:
parent
a6fea036d0
commit
5bac67b84c
7 changed files with 279 additions and 112 deletions
5
test.nil
5
test.nil
|
|
@ -1,5 +1,6 @@
|
|||
extern mod std;
|
||||
type A = struct { a: Int };
|
||||
|
||||
function main() = (
|
||||
std.printInt(10);
|
||||
let a = A { a: 0 };
|
||||
a.a = 1;
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue