diff --git a/parser/parser_test.go b/parser/parser_test.go index e0815f3b9..94e1dbab2 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -339,4 +339,10 @@ func (a T) +{} `, `/foo/bar.gop:1:6: overload operator can only have one parameter`, ``) } +func TestNumberUnitLit(t *testing.T) { + var p parser + p.checkExpr(&ast.NumberUnitLit{}) + p.toIdent(&ast.NumberUnitLit{}) +} + // -----------------------------------------------------------------------------