From 728d563cea6ecd906fee32d067c0fd2cc086b3ca Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Thu, 31 Oct 2024 11:03:58 +0100 Subject: [PATCH] eliminating more todos --- lang/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lang/README.md b/lang/README.md index 3a90e58..1ce2366 100644 --- a/lang/README.md +++ b/lang/README.md @@ -184,11 +184,19 @@ main := fn(): uint { if f == null return 34 + bar := @as(?Bar, .(a, 1)) + + if decide() bar = null + + if bar != null return 420 + return d - *f.a } Foo := struct {a: ^uint, b: uint} +Bar := struct {a: ?^uint, b: uint} + decide := fn(): bool return true ```