]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.2.1647: Vim9: result of expression with && and || is not a bool v8.2.1647
authorBram Moolenaar <Bram@vim.org>
Wed, 9 Sep 2020 18:03:46 +0000 (20:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 9 Sep 2020 18:03:46 +0000 (20:03 +0200)
commit4ed124cc6c0c55385c3b2fed9f9357baf42edbcc
treef61059c92bfba6e8f8d0cca358b08a4a0c1e2275
parent33e3346322e40b2877f63f2f37398832c7017e2f
patch 8.2.1647: Vim9: result of expression with && and || is not a bool

Problem:    Vim9: result of expression with && and || cannot be assigned to a
            bool variable.
Solution:   Add the TTFLAG_BOOL_OK flag and convert the value if needed.
src/testdir/test_vim9_disassemble.vim
src/testdir/test_vim9_script.vim
src/version.c
src/vim9compile.c