diff src/testdir/test_vim9_script.vim @ 28099:2cee7204d844 v8.2.4574

patch 8.2.4574: Vim9: test for profiling fails Commit: https://github.com/vim/vim/commit/48f69cdfa401999ac5ff8cef6d8dcabe3f93e284 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 17:30:03 +0100
parents c4ba8f3117ca
children 62a57c60edc1
line wrap: on
line diff
--- 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()