commit | f6f32c38bf3319144a84a01a154c8c91939e7acf | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Mar 12 19:03:59 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Mar 12 19:03:59 2016 +0100 |
tree | efc1285b32b8d994767094aab02e25639191da89 | |
parent | b4ebf9ae3b93d082ab3b9f4aab2f6729f77fa46a [diff] [blame] |
patch 7.4.1546 Problem: Sticky type checking is more annoying than useful. Solution: Remove the error for changing a variable type.
diff --git a/src/testdir/test_assign.vim b/src/testdir/test_assign.vim new file mode 100644 index 0000000..c1f036a --- /dev/null +++ b/src/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