From 48f69cdfa401999ac5ff8cef6d8dcabe3f93e284 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 15 Mar 2022 16:16:47 +0000 Subject: [PATCH] patch 8.2.4574: Vim9: test for profiling fails Problem: Vim9: test for profiling fails. Solution: Mark function for profiling earlier to avoid E1271. --- src/testdir/test_vim9_script.vim | 8 ++++---- src/version.c | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index dfa2a2d28..ec0d54797 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -3944,13 +3944,13 @@ def Test_profile_with_lambda() def Profile() profile start Xprofile.log profile func ProfiledWithLambda - ProfiledWithLambda() - + # mark ProfiledNested for profiling to avoid E1271 profile func ProfiledNested + ProfiledWithLambda() ProfiledNested() - # Also profile the nested function. Use a different function, although the - # contents is the same, to make sure it was not already compiled. + # Also profile the nested function. Use a different function, although + # the contents is the same, to make sure it was not already compiled. profile func * g:ProfiledNestedProfiled() diff --git a/src/version.c b/src/version.c index 9e5e142fd..4dfbdd59d 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4574, /**/ 4573, /**/ -- 2.40.0