patch 8.2.3856: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Run more expression tests also with Vim9. Fix an uncovered
problem.
diff --git a/src/vim9compile.c b/src/vim9compile.c
index ff96b10..8ef1faf 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -4308,7 +4308,8 @@
type_T *type;
type = ((type_T **)stack->ga_data)[stack->ga_len - 1];
- if (need_type(type, &t_number, -1, 0, cctx, FALSE, FALSE) == FAIL)
+ if (type != &t_float && need_type(type, &t_number,
+ -1, 0, cctx, FALSE, FALSE) == FAIL)
return FAIL;
while (p > start && (p[-1] == '-' || p[-1] == '+'))