aboutsummaryrefslogtreecommitdiff
path: root/examples/fib.fwd
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-05-07 21:22:38 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-05-07 21:22:38 +0300
commit0e0c41af58a0f4ec5a39ce77822de71e5523fcba (patch)
tree4a02b2f93e61411cbfc6084b0855dba51b326cd9 /examples/fib.fwd
parent1fadcec6d7b26d34edf3b5b3a293deea0edb4139 (diff)
downloadfwd-gnc.tar.gz
fwd-gnc.zip
implement enough type analysis for vector examplegnc
+ Big commit, scary + Some details still a bit up in the air, mainly about move checking structure member access ('register' types are freely copied I guess, same as in rust? How about user types?)
Diffstat (limited to 'examples/fib.fwd')
-rw-r--r--examples/fib.fwd4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/fib.fwd b/examples/fib.fwd
index e6d6ee6..4583a26 100644
--- a/examples/fib.fwd
+++ b/examples/fib.fwd
@@ -25,6 +25,6 @@ fib(i64 n, (i64) res)
main()
{
fib(42) => i64 n;
- print_i64(n);
- print_nl();
+ fwdprint_i64(n);
+ fwdprint_nl();
}