aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encoding.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/encoding.go')
-rw-r--r--prog/encoding.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/prog/encoding.go b/prog/encoding.go
index 9a06c6d4b..f99ff9d84 100644
--- a/prog/encoding.go
+++ b/prog/encoding.go
@@ -347,7 +347,8 @@ func (p *parser) parseArg(typ Type) (Arg, error) {
func (p *parser) parseArgImpl(typ Type) (Arg, error) {
if typ == nil && p.Char() != 'n' {
- return nil, fmt.Errorf("non-nil argument for nil type")
+ p.eatExcessive(true, "non-nil argument for nil type")
+ return nil, nil
}
switch p.Char() {
case '0':