summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-12 19:03:59 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-12 19:03:59 +0100
commitf6f32c38bf3319144a84a01a154c8c91939e7acf (patch)
treeefc1285b32b8d994767094aab02e25639191da89 /src/eval.c
parentb4ebf9ae3b93d082ab3b9f4aab2f6729f77fa46a (diff)
downloadvim-f6f32c38bf3319144a84a01a154c8c91939e7acf.zip
patch 7.4.1546
Problem: Sticky type checking is more annoying than useful. Solution: Remove the error for changing a variable type.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/eval.c b/src/eval.c
index f4843e2c0..765d9b99d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -22091,22 +22091,6 @@ set_var(
if (var_check_ro(v->di_flags, name, FALSE)
|| tv_check_lock(v->di_tv.v_lock, name, FALSE))
return;
- if (v->di_tv.v_type != tv->v_type
- && !((v->di_tv.v_type == VAR_STRING
- || v->di_tv.v_type == VAR_NUMBER)
- && (tv->v_type == VAR_STRING
- || tv->v_type == VAR_NUMBER))
-#ifdef FEAT_FLOAT
- && !((v->di_tv.v_type == VAR_NUMBER
- || v->di_tv.v_type == VAR_FLOAT)
- && (tv->v_type == VAR_NUMBER
- || tv->v_type == VAR_FLOAT))
-#endif
- )
- {
- EMSG2(_("E706: Variable type mismatch for: %s"), name);
- return;
- }
/*
* Handle setting internal v: variables separately where needed to