mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +01:00
Add a nothing built-in literal
This commit is contained in:
1 parent
49627b46f2
commit
d1f1340d47
4 files changed
+12
-5
No files matched your search
@@ -308,7 +308,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
|
||||
if q.astFunc.Effect().Coroutine() {
|
||||
lTyp = typeExprStatus
|
||||
} else if lTyp == nil {
|
||||
return fmt.Errorf("TODO: allow returning nothing")
|
||||
lTyp = typeExprEmptyStruct
|
||||
}
|
||||
if _, err := q.bcheckAssignment1(nil, lTyp, t.IDEq, n.Value()); err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user