summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc13
1 files changed, 2 insertions, 11 deletions
diff --git a/test.toc b/test.toc
index 55c20e6..c53a160 100644
--- a/test.toc
+++ b/test.toc
@@ -6,16 +6,7 @@ putf ::= fn(x: float) {
#C("printf(\"%f\\n\", (double)x);
");
};
-f ::= fn(x : int) Type {
- if x == 0 { int } else { float }
-};
-
-r ::= fn(n::=, a :f(n)) int {
-n
-};
-
main ::= fn() {
- x :: = 3;
- y : f(x);
- puti(r(y));
+ x : : = 3;
+ puti(x);
}; \ No newline at end of file