mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Remove the !? effect, leaving only ! and !??
This commit is contained in:
1 parent
d4be1fdf72
commit
1ea32b3745
7 files changed
+20
-28
No files matched your search
@@ -298,7 +298,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
|
||||
case a.KRet:
|
||||
n := n.AsRet()
|
||||
lTyp := q.astFunc.Out()
|
||||
if q.astFunc.Effect().Optional() {
|
||||
if q.astFunc.Effect().Coroutine() {
|
||||
lTyp = typeExprStatus
|
||||
} else if lTyp == nil {
|
||||
return fmt.Errorf("TODO: allow returning nothing")
|
||||
|
||||
Reference in new issue
Block a user