summaryrefslogtreecommitdiff
path: root/test2.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-12-08 14:17:20 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-12-08 14:17:20 -0500
commit3db3e1a84fcded750ccf45732c6527e1581bc36e (patch)
treede1a4fb46c4272a7c6bb4678e2837df7999f9dbb /test2.toc
parent5fd1048555c003c98633482ee4fb4b9df80fb455 (diff)
discovered a bug with flexible types while cleaning up args
Diffstat (limited to 'test2.toc')
-rw-r--r--test2.toc22
1 files changed, 0 insertions, 22 deletions
diff --git a/test2.toc b/test2.toc
deleted file mode 100644
index b32d203..0000000
--- a/test2.toc
+++ /dev/null
@@ -1,22 +0,0 @@
-puti ::= fn(x: int) {
- #C("printf(\"%ld\\n\", (long)x);
-");
-};
-putf ::= fn(x: float) {
- #C("printf(\"%f\\n\", (double)x);
-");
-};
-
-// f ::= fn(t ::= int, x : t) t {
-// x + 1
-// };
-
-f ::= fn(x : t, t ::= float) t {
- x+1
-};
-
-main ::= fn() {
- putf(f(3.321));
- puti(f(3, int));
- putf(f(3.3421, float));
-}; \ No newline at end of file