From bef345a4b8747078981e9c65b7050d65bbca6b98 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 May 2013 13:17:47 -0300 Subject: [PATCH] bug: Wrong error message in some short-cut expressions --- bugs | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/bugs b/bugs index ec487f89..b1f5e70b 100644 --- a/bugs +++ b/bugs @@ -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 = [[ ]],