diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-13 13:17:47 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-05-13 13:17:47 -0300 |
commit | bef345a4b8747078981e9c65b7050d65bbca6b98 (patch) | |
tree | e19740fe5bd18a04e714dfe35c5fbc18c23502db | |
parent | 0ce301810960e77498afb58063a40b125a31f908 (diff) | |
download | lua-bef345a4b8747078981e9c65b7050d65bbca6b98.tar.gz lua-bef345a4b8747078981e9c65b7050d65bbca6b98.tar.bz2 lua-bef345a4b8747078981e9c65b7050d65bbca6b98.zip |
bug: Wrong error message in some short-cut expressions
-rw-r--r-- | bugs | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -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 | ||
2943 | Bug{ | ||
2944 | what = [[Wrong error message in some short-cut expressions]], | ||
2945 | report = [[Egor Skriptunoff, 2013/05/10]], | ||
2946 | since = [[5.0]], | ||
2947 | fix = nil, | ||
2948 | example = [[ | ||
2949 | > a,b,c = true,true,true | ||
2950 | > (a and b or c)('', '') | ||
2951 | stdin:1: attempt to call a boolean value (global 'c') | ||
2952 | |||
2953 | (It should be global 'b' instead of 'c'.) | ||
2954 | ]], | ||
2955 | patch = [[ | ||
2956 | ]] | ||
2957 | } | ||
2958 | |||
2943 | --[=[ | 2959 | --[=[ |
2944 | Bug{ | 2960 | Bug{ |
2945 | what = [[ ]], | 2961 | what = [[ ]], |