mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
typeck cleanup
This commit is contained in:
parent
73a369730b
commit
ba3a199249
9 changed files with 345 additions and 319 deletions
25
ui-tests/ui/item_tys.nil
Normal file
25
ui-tests/ui/item_tys.nil
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
//@check-pass
|
||||
|
||||
type A = struct {
|
||||
b: B,
|
||||
c: C,
|
||||
};
|
||||
|
||||
type B = struct {};
|
||||
|
||||
type C = struct {
|
||||
b: B,
|
||||
};
|
||||
|
||||
function test(a: A): A = a;
|
||||
|
||||
function main() = (
|
||||
let a = A {
|
||||
b: B {},
|
||||
c: C {
|
||||
b: B {},
|
||||
}
|
||||
};
|
||||
|
||||
test(a);
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue