bug: Wrong error message in some short-cut expressions

This commit is contained in:
Roberto Ierusalimschy 2013-05-13 13:17:47 -03:00
parent 0ce3018109
commit bef345a4b8
1 changed files with 18 additions and 2 deletions

20
bugs
View File

@ -1880,8 +1880,8 @@ patch = [[
+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
@@ -1,5 +1,5 @@
/*
-** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $
+** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $
-** $Id: bugs,v 1.122 2013/05/06 17:21:28 roberto Exp roberto $
+** $Id: bugs,v 1.122 2013/05/06 17:21:28 roberto Exp roberto $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@ -2940,6 +2940,22 @@ patch = [[
]]
}
Bug{
what = [[Wrong error message in some short-cut expressions]],
report = [[Egor Skriptunoff, 2013/05/10]],
since = [[5.0]],
fix = nil,
example = [[
> a,b,c = true,true,true
> (a and b or c)('', '')
stdin:1: attempt to call a boolean value (global 'c')
(It should be global 'b' instead of 'c'.)
]],
patch = [[
]]
}
--[=[
Bug{
what = [[ ]],