diff options
| author | Baitinq <[email protected]> | 2025-02-15 23:29:29 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-02-15 23:29:29 +0100 |
| commit | 0c8df446c65b53c34b51a43542d74ee58882a49b (patch) | |
| tree | f5580bfeaa4e48f416c962bf968f7f7e72a5a397 /examples | |
| parent | Codegen: start supporting types for function params (diff) | |
| download | pry-lang-0c8df446c65b53c34b51a43542d74ee58882a49b.tar.gz pry-lang-0c8df446c65b53c34b51a43542d74ee58882a49b.tar.bz2 pry-lang-0c8df446c65b53c34b51a43542d74ee58882a49b.zip | |
Codegen: support bool type
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/9.src | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/9.src b/examples/9.src index 9b514e6..c226217 100644 --- a/examples/9.src +++ b/examples/9.src @@ -1,9 +1,14 @@ +let print_boolean = (b: bool) => i64 { + printb(b); + return 0; +}; + let main = () => i64 { let i = true; i = !i; if !i { - printb(!i); + print_boolean(!i); return 1; }; |