comparison src/userfunc.c @ 20144:c21a1d91f78d v8.2.0627

patch 8.2.0627: Vim9: error message does not work Commit: https://github.com/vim/vim/commit/b8ce6b0005573139fd101dc703ed30360940401b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 23 22:23:14 2020 +0200 patch 8.2.0627: Vim9: error message does not work Problem: Vim9: error message does not work. (Yegappan Lakshmanan) Solution: Swap lines.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Apr 2020 22:30:04 +0200
parents fe8d0a4344df
children 63cc54100ae4
comparison
equal deleted inserted replaced
20143:07c83d9d2f2a 20144:c21a1d91f78d
2612 ret_type = vim_strnsave(ret_type, (int)(p - ret_type)); 2612 ret_type = vim_strnsave(ret_type, (int)(p - ret_type));
2613 p = skipwhite(p); 2613 p = skipwhite(p);
2614 } 2614 }
2615 else 2615 else
2616 { 2616 {
2617 semsg(_("E1056: expected a type: %s"), ret_type);
2617 ret_type = NULL; 2618 ret_type = NULL;
2618 semsg(_("E1056: expected a type: %s"), ret_type);
2619 } 2619 }
2620 } 2620 }
2621 } 2621 }
2622 else 2622 else
2623 // find extra arguments "range", "dict", "abort" and "closure" 2623 // find extra arguments "range", "dict", "abort" and "closure"