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 ```