diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-08 14:17:20 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-08 14:17:20 -0500 |
commit | 3db3e1a84fcded750ccf45732c6527e1581bc36e (patch) | |
tree | de1a4fb46c4272a7c6bb4678e2837df7999f9dbb /test2.toc | |
parent | 5fd1048555c003c98633482ee4fb4b9df80fb455 (diff) |
discovered a bug with flexible types while cleaning up args
Diffstat (limited to 'test2.toc')
-rw-r--r-- | test2.toc | 22 |
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 |