aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-05-13 13:17:47 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-05-13 13:17:47 -0300
commitbef345a4b8747078981e9c65b7050d65bbca6b98 (patch)
treee19740fe5bd18a04e714dfe35c5fbc18c23502db
parent0ce301810960e77498afb58063a40b125a31f908 (diff)
downloadlua-bef345a4b8747078981e9c65b7050d65bbca6b98.tar.gz
lua-bef345a4b8747078981e9c65b7050d65bbca6b98.tar.bz2
lua-bef345a4b8747078981e9c65b7050d65bbca6b98.zip
bug: Wrong error message in some short-cut expressions
-rw-r--r--bugs20
1 files changed, 18 insertions, 2 deletions
diff --git a/bugs b/bugs
index ec487f89..b1f5e70b 100644
--- a/bugs
+++ b/bugs
@@ -1880,8 +1880,8 @@ patch = [[
1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4 1880+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
1881@@ -1,5 +1,5 @@ 1881@@ -1,5 +1,5 @@
1882 /* 1882 /*
1883-** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $ 1883-** $Id: bugs,v 1.122 2013/05/06 17:21:28 roberto Exp roberto $
1884+** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $ 1884+** $Id: bugs,v 1.122 2013/05/06 17:21:28 roberto Exp roberto $
1885 ** load precompiled Lua chunks 1885 ** load precompiled Lua chunks
1886 ** See Copyright Notice in lua.h 1886 ** See Copyright Notice in lua.h
1887 */ 1887 */
@@ -2940,6 +2940,22 @@ patch = [[
2940]] 2940]]
2941} 2941}
2942 2942
2943Bug{
2944what = [[Wrong error message in some short-cut expressions]],
2945report = [[Egor Skriptunoff, 2013/05/10]],
2946since = [[5.0]],
2947fix = nil,
2948example = [[
2949> a,b,c = true,true,true
2950> (a and b or c)('', '')
2951stdin:1: attempt to call a boolean value (global 'c')
2952
2953 (It should be global 'b' instead of 'c'.)
2954]],
2955patch = [[
2956]]
2957}
2958
2943--[=[ 2959--[=[
2944Bug{ 2960Bug{
2945what = [[ ]], 2961what = [[ ]],