updated expected

This commit is contained in:
Scarlett
2025-04-25 23:54:37 -04:00
parent 6e4841f0c1
commit 3e54a72f38
7 changed files with 121 additions and 139 deletions

View File

@ -6,12 +6,13 @@ type main: string -> integer
function entry: main
function bar: T2
bar2 (r,s) := {
return r;
bar (r,s) := {
return 0;
}
entry (arg) := {
[ integer: result ; rec: w]
result := bar(1,2);
result := bar('c', 7);
return 0;
}

View File

@ -1,17 +0,0 @@
type rec: [character: x; integer: y]
type T2: rec -> integer
type main: string -> integer
function entry: main
function bar: T2
bar2 (r,s) := {
return s;
}
entry (arg) := {
[ integer: result ; rec: w]
result := bar('c', 7);
return 0;
}