aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorPatrick <patrick@bitscope.com>2016-07-13 16:49:22 +1000
committerPatrick <patrick@bitscope.com>2016-07-13 17:47:46 +1000
commita3dc7ef44577dc4708ac7b4c329c1620770aadc3 (patch)
tree7ad18fa84753c5c5302e74f949cd0581b5c4ea58 /src/nvim/testdir
parentdcbd1c7b13e98766754c4e75d3bb59021248217e (diff)
downloadrneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.tar.gz
rneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.tar.bz2
rneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.zip
vim-patch:7.4.1546
Problem: Sticky type checking is more annoying than useful. Solution: Remove the error for changing a variable type. https://github.com/vim/vim/commit/f6f32c38bf3319144a84a01a154c8c91939e7acf Note: There are a bunch of other changes to eval.txt that I believe are N/A and not related to this patch.
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/Makefile1
-rw-r--r--src/nvim/testdir/test_assign.vim9
2 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile
index 4b0b5e8d26..30923101bc 100644
--- a/src/nvim/testdir/Makefile
+++ b/src/nvim/testdir/Makefile
@@ -33,6 +33,7 @@ SCRIPTS := \
# Tests using runtest.vim.vim.
# Keep test_alot*.res as the last one, sort the others.
NEW_TESTS = \
+ test_assign.res \
test_cursor_func.res \
test_hardcopy.res \
test_help_tagjump.res \
diff --git a/src/nvim/testdir/test_assign.vim b/src/nvim/testdir/test_assign.vim
new file mode 100644
index 0000000000..3d2e7a8998
--- /dev/null
+++ b/src/nvim/testdir/test_assign.vim
@@ -0,0 +1,9 @@
+" Test for assignment
+
+func Test_no_type_checking()
+ let v = 1
+ let v = [1,2,3]
+ let v = {'a':1, 'b':2}
+ let v = 3.4
+ let v = 'hello'
+endfunc