From 06b77229ca704d00c4f138ed0377556e54d5851f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 25 Jan 2022 15:51:56 +0000 Subject: patch 8.2.4216: Vim9: cannot use a function from an autoload import directly Problem: Vim9: cannot use a function from an autoload import directly. Solution: Add the AUTOLOAD instruction to figure out at runtime. (closes #9620) --- src/vim9.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vim9.h') diff --git a/src/vim9.h b/src/vim9.h index 912af1f5d..45e97a2db 100644 --- a/src/vim9.h +++ b/src/vim9.h @@ -92,6 +92,8 @@ typedef enum { ISN_NEWLIST, // push list from stack items, size is isn_arg.number ISN_NEWDICT, // push dict from stack items, size is isn_arg.number + ISN_AUTOLOAD, // get item from autoload import, function or variable + // function call ISN_BCALL, // call builtin function isn_arg.bfunc ISN_DCALL, // call def function isn_arg.dfunc -- cgit v1.2.1