summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_assign.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-10-16 19:56:12 +0200
committerBram Moolenaar <Bram@vim.org>2020-10-16 19:56:12 +0200
commit7a66a17190f2f64688a697ea29d58388612122ce (patch)
tree0c9eb0d28922da3a592ad60113861f42143c5ad2 /src/testdir/test_vim9_assign.vim
parentffdf8adfa8108d4765fdc68abbd2fe49a4292b25 (diff)
downloadvim-git-7a66a17190f2f64688a697ea29d58388612122ce.tar.gz
patch 8.2.1853: "to_f" is recognized at "topleft" modifierv8.2.1853
Problem: "to_f" is recognized at "topleft" modifier. Solution: Do not recognize modifer when "_" follows. (closes #7019)
Diffstat (limited to 'src/testdir/test_vim9_assign.vim')
-rw-r--r--src/testdir/test_vim9_assign.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_vim9_assign.vim b/src/testdir/test_vim9_assign.vim
index cf06b5cd8..478a1e5cd 100644
--- a/src/testdir/test_vim9_assign.vim
+++ b/src/testdir/test_vim9_assign.vim
@@ -454,7 +454,6 @@ def Test_assignment_local()
enddef
def Test_assignment_default()
-
# Test default values.
var thebool: bool
assert_equal(v:false, thebool)
@@ -571,6 +570,10 @@ def Test_assignment_vim9script()
assert_equal(43, w)
var t: number = 44
assert_equal(44, t)
+
+ var to_var = 0
+ to_var = 3
+ assert_equal(3, to_var)
END
CheckScriptSuccess(lines)