From dabd9e5eb81bbc9aeaeb32fb3e3ce83eef258a77 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 18 Jul 2024 12:56:29 +0200 Subject: fix (parser): don't panic if assign of define untyped value (#10) * fix (parser): don't panic if assign of define untyped value In case of defining or assigning to untyped value, the type has to be taken from the source value instead of the target value. The vm test coverage has also been slightly improved. * fix and simplify Token.Name() * improve parser errors --- .golangci.yaml | 3 +++ 1 file changed, 3 insertions(+) (limited to '.golangci.yaml') diff --git a/.golangci.yaml b/.golangci.yaml index 64e12a5..f2191fb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,6 +5,9 @@ linters: - gofumpt - gosec - misspell + - perfsprint + - prealloc - predeclared - reassign - revive + - unconvert -- cgit v1.2.3