diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index c6b02478ce..7e1d911c1c 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4028,10 +4028,13 @@ compile_def_function( line = (char_u *)""; break; + case CMD_class: + emsg(_(e_class_can_only_be_used_in_script)); + goto erret; + case CMD_type: emsg(_(e_type_can_only_be_used_in_script)); goto erret; - break; case CMD_global: if (check_global_and_subst(ea.cmd, p) == FAIL) |