# HG changeset patch # User Bram Moolenaar # Date 1647361803 -3600 # Node ID 2cee7204d844176e9ebf76231efcaa5469de6e16 # Parent 298565065982f2370b49473a6157bd7f9c365523 patch 8.2.4574: Vim9: test for profiling fails Commit: https://github.com/vim/vim/commit/48f69cdfa401999ac5ff8cef6d8dcabe3f93e284 Author: Bram Moolenaar Date: Tue Mar 15 16:16:47 2022 +0000 patch 8.2.4574: Vim9: test for profiling fails Problem: Vim9: test for profiling fails. Solution: Mark function for profiling earlier to avoid E1271. diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim --- 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 + # mark ProfiledNested for profiling to avoid E1271 + profile func ProfiledNested ProfiledWithLambda() - - profile func ProfiledNested 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4574, +/**/ 4573, /**/ 4572,