0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0764: Vim9: assigning to option not fully tested

Problem:    Vim9: assigning to option not fully tested.
Solution:   Add more test cases. Allow using any type for assignment.
This commit is contained in:
Bram Moolenaar
2020-05-15 23:36:40 +02:00
parent 4457e1d98f
commit a6e67e4f41
4 changed files with 14 additions and 9 deletions

View File

@@ -3490,7 +3490,7 @@ compile_subscript(
type_T **typep;
// list index: list[123]
// list member: dict[key]
// dict member: dict[key]
// TODO: blob index
// TODO: more arguments
// TODO: recognize list or dict at runtime
@@ -4999,8 +4999,8 @@ compile_assignment(char_u *arg, exarg_T *eap, cmdidx_T cmdidx, cctx_T *cctx)
goto theend;
}
}
else if (*p != '=' && check_type(member_type, stacktype, TRUE)
== FAIL)
else if (*p != '=' && need_type(stacktype, member_type, -1,
cctx) == FAIL)
goto theend;
}
}