comparison src/testdir/test_vim9_expr.vim @ 23806:c0f2c6c56147 v8.2.2444

patch 8.2.2444: Vim9: compile error with combination of operator and list Commit: https://github.com/vim/vim/commit/e507ff15d52653dad3054ddc0073708977621c0c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 21:47:42 2021 +0100 patch 8.2.2444: Vim9: compile error with combination of operator and list Problem: Vim9: compile error with combination of operator and list. Solution: Generate constants before parsing a list or dict. (closes https://github.com/vim/vim/issues/7757)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 Jan 2021 22:00:03 +0100
parents 6d35bc0f161e
children 7e0d8f1cae7d
comparison
equal deleted inserted replaced
23805:c17b61789da3 23806:c0f2c6c56147
1081 assert_equal('av:none', 'a' .. v:none) 1081 assert_equal('av:none', 'a' .. v:none)
1082 if has('float') 1082 if has('float')
1083 assert_equal('a0.123', 'a' .. 0.123) 1083 assert_equal('a0.123', 'a' .. 0.123)
1084 endif 1084 endif
1085 1085
1086 assert_equal(3, 1 + [2, 3, 4][0])
1087 assert_equal(5, 2 + {key: 3}['key'])
1088
1086 set digraph 1089 set digraph
1087 assert_equal('val: true', 'val: ' .. &digraph) 1090 assert_equal('val: true', 'val: ' .. &digraph)
1088 set nodigraph 1091 set nodigraph
1089 assert_equal('val: false', 'val: ' .. &digraph) 1092 assert_equal('val: false', 'val: ' .. &digraph)
1090 1093