diff src/userfunc.c @ 23420:42294d4d4f6e v8.2.2253

patch 8.2.2253: Vim9: expr test fails Commit: https://github.com/vim/vim/commit/ca2f7e7af32d51c2be378a5298bc85958c877653 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 31 13:39:54 2020 +0100 patch 8.2.2253: Vim9: expr test fails Problem: Vim9: expr test fails. Solution: Add missing assignment.
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Dec 2020 13:45:05 +0100
parents 40f824f5c7c7
children c3c690c8fcbf
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -664,6 +664,8 @@ get_lambda_tv(
 		if (fp->uf_ret_type == NULL)
 		    goto errret;
 	    }
+	    else
+		fp->uf_ret_type = &t_unknown;
 	}
 
 	fp->uf_lines = newlines;