forked from AbleOS/holey-bytes
returning optional issues test
This commit is contained in:
parent
d3ee72306e
commit
d2ba7cc101
|
@ -626,6 +626,24 @@ main := fn(): uint {
|
|||
}
|
||||
```
|
||||
|
||||
#### returning_optional_issues
|
||||
```hb
|
||||
BMP := 0
|
||||
|
||||
get_format := fn(): ?uint {
|
||||
return BMP
|
||||
}
|
||||
|
||||
main := fn(): uint {
|
||||
fmt := get_format()
|
||||
if fmt == null {
|
||||
return 1
|
||||
} else {
|
||||
return fmt
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### inlining_issues
|
||||
```hb
|
||||
main := fn(): void {
|
||||
|
|
|
@ -4595,5 +4595,6 @@ mod tests {
|
|||
overwrite_aliasing_overoptimization;
|
||||
more_if_opts;
|
||||
optional_from_eca;
|
||||
returning_optional_issues;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue