worked on function call return type check and started checking return type

This commit is contained in:
Annie
2025-04-15 00:53:03 -04:00
parent 06db190428
commit 2b1557b52c
5 changed files with 150 additions and 17 deletions

View File

@ -0,0 +1,17 @@
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;
}