Problem: Vim9: no test for nested function not available later.
Solution: Add a test.
END
CheckDefFailure(lines, 'E1117:')
+ lines =<< trim END
+ vim9script
+ def Outer()
+ def Inner()
+ g:result = 'ok'
+ enddef
+ Inner()
+ enddef
+ Outer()
+ Inner()
+ END
+ CheckScriptFailure(lines, 'E117: Unknown function: Inner')
+ assert_equal('ok', g:result)
+ unlet g:result
+
# nested function inside conditional
lines =<< trim END
vim9script
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3896,
/**/
3895,
/**/