patch 9.0.1928: Vim9: constructor type checking bug
Problem: Vim9: constructor type checking bug
Solution: Fix class constructor regression
closes: #13102
closes: #13113
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: h-east <h.east.727@gmail.com>
diff --git a/src/vim9execute.c b/src/vim9execute.c
index 23dee1c..a53b1b3 100644
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -4470,7 +4470,7 @@
ea.cmd = ea.arg = iptr->isn_arg.string;
ga_init2(&lines_to_free, sizeof(char_u *), 50);
SOURCING_LNUM = iptr->isn_lnum;
- define_function(&ea, NULL, &lines_to_free, 0);
+ define_function(&ea, NULL, &lines_to_free, 0, NULL, 0);
ga_clear_strings(&lines_to_free);
}
break;