diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-09 23:00:01 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-01-09 23:00:01 +0200 |
commit | 2367a8b63c3bcfe62d1aaf7d82c0ab3622f3b16c (patch) | |
tree | 3cef502c8bd0dfad3b6a119efef6b71bba8d1e5b /examples/references.fwd | |
parent | 598be4cd1bdd79e4859ae30291f4d65682cc672a (diff) | |
download | fwd-2367a8b63c3bcfe62d1aaf7d82c0ab3622f3b16c.tar.gz fwd-2367a8b63c3bcfe62d1aaf7d82c0ab3622f3b16c.zip |
initial ptr stuff
Diffstat (limited to 'examples/references.fwd')
-rw-r--r-- | examples/references.fwd | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/references.fwd b/examples/references.fwd index 468f4a0..5b73aaf 100644 --- a/examples/references.fwd +++ b/examples/references.fwd @@ -16,7 +16,9 @@ main() /* references are not active anymore so we can reference again */ references(twenty&, thirty&) => { - /* not ok since twenty/thirty is actively borrowed */ - twenty + thirty => int fifty; + /* Try uncommenting! + * Not ok since twenty/thirty is actively borrowed + */ + // twenty + thirty => int fifty; }; } |