diff options
Diffstat (limited to 'pkg/compiler/compiler.go')
| -rw-r--r-- | pkg/compiler/compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index 3022def7f..7b22cef42 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -148,12 +148,12 @@ type warn struct { msg string } -func (comp *compiler) error(pos ast.Pos, msg string, args ...interface{}) { +func (comp *compiler) error(pos ast.Pos, msg string, args ...any) { comp.errors++ comp.eh(pos, fmt.Sprintf(msg, args...)) } -func (comp *compiler) warning(pos ast.Pos, msg string, args ...interface{}) { +func (comp *compiler) warning(pos ast.Pos, msg string, args ...any) { comp.warnings = append(comp.warnings, warn{pos, fmt.Sprintf(msg, args...)}) } |
