From 02d1df393a005d9b214fc8e8ead8b9dbd43e1d8d Mon Sep 17 00:00:00 2001 From: xushiwei Date: Thu, 7 Nov 2024 12:03:42 +0800 Subject: [PATCH] TestNumberUnitLit --- parser/parser_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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{}) +} + // -----------------------------------------------------------------------------