aboutsummaryrefslogtreecommitdiff
path: root/testes/constructs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/constructs.lua')
-rw-r--r--testes/constructs.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/constructs.lua b/testes/constructs.lua
index b91e0979..fe4db2cb 100644
--- a/testes/constructs.lua
+++ b/testes/constructs.lua
@@ -215,7 +215,7 @@ do -- testing constants
215 checkload(prog, "unknown attribute 'XXX'") 215 checkload(prog, "unknown attribute 'XXX'")
216 216
217 checkload([[local <const> xxx = 20; xxx = 10]], 217 checkload([[local <const> xxx = 20; xxx = 10]],
218 ":1: assignment to const variable 'xxx'") 218 ":1: attempt to assign to const variable 'xxx'")
219 219
220 checkload([[ 220 checkload([[
221 local xx; 221 local xx;
@@ -225,12 +225,12 @@ do -- testing constants
225 local abc = xx + yyy + xxx; 225 local abc = xx + yyy + xxx;
226 return function () return function () xxx = yyy end end 226 return function () return function () xxx = yyy end end
227 end 227 end
228 ]], ":6: assignment to const variable 'xxx'") 228 ]], ":6: attempt to assign to const variable 'xxx'")
229 229
230 checkload([[ 230 checkload([[
231 local <toclose> x = nil 231 local <toclose> x = nil
232 x = io.open() 232 x = io.open()
233 ]], ":2: assignment to const variable 'x'") 233 ]], ":2: attempt to assign to const variable 'x'")
234end 234end
235 235
236f = [[ 236f = [[