Skip to content

Commit

Permalink
TestNumberUnitLit
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Nov 7, 2024
1 parent 36b76a8 commit 02d1df3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{})
}

// -----------------------------------------------------------------------------

0 comments on commit 02d1df3

Please sign in to comment.