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
index dfa2a2d..ec0d547 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -3944,13 +3944,13 @@
       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()