forked from AbleOS/holey-bytes
eliminating more todos
This commit is contained in:
parent
56984f08ff
commit
728d563cea
|
@ -184,11 +184,19 @@ main := fn(): uint {
|
||||||
|
|
||||||
if f == null return 34
|
if f == null return 34
|
||||||
|
|
||||||
|
bar := @as(?Bar, .(a, 1))
|
||||||
|
|
||||||
|
if decide() bar = null
|
||||||
|
|
||||||
|
if bar != null return 420
|
||||||
|
|
||||||
return d - *f.a
|
return d - *f.a
|
||||||
}
|
}
|
||||||
|
|
||||||
Foo := struct {a: ^uint, b: uint}
|
Foo := struct {a: ^uint, b: uint}
|
||||||
|
|
||||||
|
Bar := struct {a: ?^uint, b: uint}
|
||||||
|
|
||||||
decide := fn(): bool return true
|
decide := fn(): bool return true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue