Correct line in error message for constant function
This commit is contained in:
1 parent
5b1ab8efdc
commit
7dc6aae290
2 files changed
+8
-1
No files matched your search
@@ -342,6 +342,13 @@ do
|
||||
global foo <const>;
|
||||
function foo (x) return end -- ERROR: foo is read-only
|
||||
]], "assign to const variable 'foo'")
|
||||
|
||||
checkerr([[
|
||||
global foo <const>;
|
||||
function foo (x) -- ERROR: foo is read-only
|
||||
return
|
||||
end
|
||||
]], "%:2%:") -- correct line in error message
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user