Add length also for too-many/few-args error

This commit is contained in:
Fabian Boehm
2022-09-08 20:41:02 +02:00
parent a3ee7da812
commit c284c4ca99
2 changed files with 15 additions and 1 deletions

View File

@@ -254,6 +254,11 @@ math pow sin 3, 5
# CHECKERR: 'pow sin 3, 5'
# CHECKERR: ^
math pow sin 3, 5 + 2
# CHECKERR: math: Error: Too many arguments
# CHECKERR: 'pow sin 3, 5 + 2'
# CHECKERR: ^~~~^
math sin pow 3, 5
# CHECK: -0.890009