mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
25 lines
No EOL
261 B
Text
25 lines
No EOL
261 B
Text
//@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);
|
|
); |