repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Assignments are now typechecked
[cc1516.git]
/
examples
/
Markus
/
overloading.spl
diff --git
a/examples/Markus/overloading.spl
b/examples/Markus/overloading.spl
index
4d8c615
..
f3ba7a3
100644
(file)
--- a/
examples/Markus/overloading.spl
+++ b/
examples/Markus/overloading.spl
@@
-1,9
+1,11
@@
// At this point you maybe don't see what the problem is.
// Wait until you try to implement your code generator.
-var a = equal(1, 2);
-
equal(x, y)
{
return x == y;
}
+
+a() {return equal(1, 2);}
+
+main() {return;}
\ No newline at end of file