summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_vim9_func.vim
AgeCommit message (Collapse)Author
2021-07-18patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.v8.2.3175Bram Moolenaar
Problem: Vim9: using illegal pointer with inline function inside a lambda. Solution: Clear eval_tofree_cmdline when advancing to the next line. (closes #8578)
2021-07-15patch 8.2.3169: Vim9: cannot handle nested inline functionv8.2.3169Bram Moolenaar
Problem: Vim9: cannot handle nested inline function. Solution: Check for nested inline function. (closes #8575)
2021-07-10patch 8.2.3137: Vim9: no error when a line only has a variable namev8.2.3137Bram Moolenaar
Problem: Vim9: no error when a line only has a variable name. Solution: Give an error when an expression is evaluated without an effect. (closes #8538)
2021-07-04patch 8.2.3100: Vim9: no error when using type with unknown number of argsv8.2.3100Bram Moolenaar
Problem: Vim9: no error when using type with unknown number of arguments. Solution: Do not ignore argument count of -1. (closes #8492)
2021-07-03patch 8.2.3091: Vim9: default argument expr. cannot use previous argumentv8.2.3091Bram Moolenaar
Problem: Vim9: default argument expression cannot use previous argument Solution: Correct argument index. (closes #8496)
2021-06-26patch 8.2.3060: Vim9: cannot use ternary operator in parenthesisv8.2.3060Bram Moolenaar
Problem: Vim9: cannot use ternary operator in parenthesis. Solution: Do not use "=~" for a default argument value. (closes #8462)
2021-06-26patch 8.2.3058: Vim9: cannot use ternary operator in parenthesisv8.2.3058Bram Moolenaar
Problem: Vim9: cannot use ternary operator in parenthesis. Solution: Do not use "==" for a default argument value. (closes #8462)
2021-06-26patch 8.2.3056: Vim9: using default value in lambda gives confusing errorv8.2.3056Bram Moolenaar
Problem: Vim9: using default value in lambda gives confusing error. Solution: Pass "default_args" on the first pass to get the arguments. (closes #8455)
2021-06-26patch 8.2.3052: Vim9: "legacy call" does not workv8.2.3052Bram Moolenaar
Problem: Vim9: "legacy call" does not work. Solution: Do not skip "call" after "legacy". (closes #8454)
2021-06-22patch 8.2.3035: Vim9: crash when calling :def function with partialv8.2.3035Bram Moolenaar
Problem: Vim9: crash when calling :def function with partial and return type is not set. Solution: When the return type is not set handle like the return type is unknown. (closes #8422)
2021-06-21patch 8.2.3031: no error if a function name starts with an underscorev8.2.3031Bram Moolenaar
Problem: No error if a function name starts with an underscore. (Naohiro Ono) Solution: In Vim9 script disallow a function name starting with an underscore, as is mentioned in the help. (closes #8414)
2021-06-12patch 8.2.2983: Vim9: an inline function requires specifying the return typev8.2.2983Bram Moolenaar
Problem: Vim9: an inline function requires specifying the return type. Solution: Make the return type optional.
2021-06-11patch 8.2.2975: Vim9: can only use an autoload function name as a stringv8.2.2975Bram Moolenaar
Problem: Vim9: can only use an autoload function name as a string. Solution: Load the autoload script when encountered. (closes #8124)
2021-06-09patch 8.2.2967: Vim9: crash when using two levels of partialsv8.2.2967Bram Moolenaar
Problem: Vim9: crash when using two levels of partials. Solution: Add outer_ref_T and use it in the execution context.
2021-06-08patch 8.2.2965: Vim9: crash when calling function that failed to compilev8.2.2965Bram Moolenaar
Problem: Vim9: crash when calling function that failed to compile. Solution: Fail when trying to call the function. (closes #8344)
2021-06-06patch 8.2.2951: Vim9: cannot use heredoc for :python, :lua, etc.v8.2.2951Bram Moolenaar
Problem: Vim9: cannot use heredoc in :def function for :python, :lua, etc. Solution: Concatenate the heredoc lines and pass them in the ISN_EXEC_SPLIT instruction.
2021-06-02patch 8.2.2926: Vim9: no good error for using :legacy in a :def functionv8.2.2926Bram Moolenaar
Problem: Vim9: no good error for using :legacy in a :def function. Solution: Give an explicit error where :legacy is not working. (closes #8309)
2021-05-25patch 8.2.2886: various pieces of code not covered by testsv8.2.2886Yegappan Lakshmanan
Problem: Various pieces of code not covered by tests. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8255)
2021-05-24patch 8.2.2881: various pieces of code not covered by testsv8.2.2881Yegappan Lakshmanan
Problem: Various pieces of code not covered by tests. Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8245)
2021-05-18patch 8.2.2864: Vim9: crash when using inline functionv8.2.2864Bram Moolenaar
Problem: Vim9: crash when using inline function. Solution: Check for NULL pointer. Make using inline function work inside lambda. (closes #8217)
2021-04-28patch 8.2.2817: Vim9: script sourcing continues after an errorv8.2.2817Bram Moolenaar
Problem: Vim9: script sourcing continues after an error. Solution: Make an error in any command in "vim9script" abort sourcing.
2021-04-25patch 8.2.2809: Vim9: :def function compilation fails when using :legacyv8.2.2809Bram Moolenaar
Problem: Vim9: :def function compilation fails when using :legacy. Solution: Reset CMOD_LEGACY when compiling a function. (closes #8137)
2021-04-24patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 scriptv8.2.2805Bram Moolenaar
Problem: Vim9: cannot use legacy syntax in Vim9 script. Solution: Add the :legacy command.
2021-04-23patch 8.2.2802: Vim9: illegal memory accessv8.2.2802Bram Moolenaar
Problem: Vim9: illegal memory access. Solution: Check for comment before checking for white space. (closes #8142)
2021-04-12patch 8.2.2758: Vim9: wrong line number for autoload function with wrong namev8.2.2758Bram Moolenaar
Problem: Vim9: wrong line number for autoload function with wrong name. Solution: Set and restore SOURCING_LNUM. (closes #8100)
2021-04-10patch 8.2.2750: Vim9: error for using underscore in nested functionv8.2.2750Bram Moolenaar
Problem: Vim9: error for using underscore in nested function. Solution: Do not consider "_" already defined. (closes #8096)
2021-04-10patch 8.2.2747: Vim9: not always an error for too many function argumentsv8.2.2747Bram Moolenaar
Problem: Vim9: not always an error for too many function arguments. Solution: Check for getting too many arguments.
2021-04-10patch 8.2.2744: Vim9: no way to explicitly ignore an argumentv8.2.2744Bram Moolenaar
Problem: Vim9: no way to explicitly ignore an argument. Solution: Use the underscore as the name for an ignored argument.
2021-04-10patch 8.2.2743: Vim9: function state stuck when compiling with ":silent!"v8.2.2743Bram Moolenaar
Problem: Vim9: function state stuck when compiling with ":silent!". Solution: Check for uf_def_status to be UF_COMPILING.
2021-04-10patch 8.2.2742: Vim9: when compiling a function fails it is clearedv8.2.2742Bram Moolenaar
Problem: Vim9: when compiling a function fails it is cleared. Solution: Keep the function lines, prevent execution with a different status. (closes #8093)
2021-04-09patch 8.2.2741: Vim9: Partial call does not check right argumentsv8.2.2741Bram Moolenaar
Problem: Vim9: Partial call does not check right arguments. Solution: Adjust the offset for whether the partial is before or after the arguments. (closes #8091)
2021-04-09patch 8.2.2740: Vim9: lambda with varargs doesn't workv8.2.2740Bram Moolenaar
Problem: Vim9: lambda with varargs doesn't work. Solution: Make "...name" work. Require type to be a list.
2021-04-09patch 8.2.2739: Vim9: a lambda accepts too many arguments at the script levelv8.2.2739Bram Moolenaar
Problem: Vim9: a lambda accepts too many arguments at the script level. Solution: Do not set uf_varargs in Vim9 script.
2021-04-06patch 8.2.2726: confusing error message with white space before commav8.2.2726Bram Moolenaar
Problem: Confusing error message with white space before comma in the arguments of a function declaration. Solution: Give a specific error message. (closes #2235)
2021-04-05patch 8.2.2725: Vim9: message about compiling is wrong when using try/catchv8.2.2725Bram Moolenaar
Problem: Vim9: message about compiling is wrong when using try/catch. Solution: Store the compiling flag with the message. (closes #8071)
2021-04-05patch 8.2.2718: Vim9: no explicit test for using a global function without g:v8.2.2718Bram Moolenaar
Problem: Vim9: no explicit test for using a global function without the g: prefix. Solution: Add a test case.
2021-03-29patch 8.2.2677: Vim9: cannot use only some of the default argumentsv8.2.2677Bram Moolenaar
Problem: Vim9: cannot use only some of the default arguments. Solution: Use v:none to use default argument value. Remove uf_def_arg_idx[], use JUMP_IF_ARG_SET. (closes #6504)
2021-03-24patch 8.2.2650: Vim9: command modifiers not handled in nested functionv8.2.2650Bram Moolenaar
Problem: Vim9: command modifiers not handled in nested function. Solution: Keep function-local info in a structure and save it on the stack.
2021-03-22patch 8.2.2645: using inline function is not properly testedv8.2.2645Bram Moolenaar
Problem: Using inline function is not properly tested. Solution: Add test cases, esp. for errors. Minor code improvements.
2021-03-17patch 8.2.2619: Vim9: no test for return type of lambdav8.2.2619Bram Moolenaar
Problem: Vim9: no test for return type of lambda. Solution: Add a test.
2021-03-17patch 8.2.2617: Vim9: script variable in block not found by functionv8.2.2617Bram Moolenaar
Problem: Vim9: script variable in a block scope not found by a nested function. Solution: Copy the block scope IDs before compiling the function.
2021-03-11patch 8.2.2590: Vim9: default argument value may cause internal errorv8.2.2590Bram Moolenaar
Problem: Vim9: default argument value may cause internal error. Solution: Hide later function arguments when compiling the expression. (closes #7948)
2021-03-06patch 8.2.2576: Vim9: defining a :func function checks for white spacev8.2.2576Bram Moolenaar
Problem: Vim9: defining a :func function checks for white space after a comma in the arguments. Solution: Only check for white space in a :def function. (closes #7930)
2021-03-06patch 8.2.2574: Vim9: crash when calling partial with wrong functionv8.2.2574Bram Moolenaar
Problem: Vim9: crash when calling partial with wrong function. Solution: Check argument types of called function. (closes #7912)
2021-03-05patch 8.2.2572: Vim9: crash when getting the types for a legacy functionv8.2.2572Bram Moolenaar
Problem: Vim9: crash when getting the types for a legacy function. Solution: Initialize the type list growarray. (closes #7929)
2021-02-28patch 8.2.2558: no error if a lambda argument shadows a variablev8.2.2558Bram Moolenaar
Problem: No error if a lambda argument shadows a variable. Solution: Check that the argument name shadows a local, argument or script variable. (closes #7898)
2021-02-21patch 8.2.2540: Vim9: no error for using script var name for argumentv8.2.2540Bram Moolenaar
Problem: Vim9: no error for using script var name for argument. Solution: Check for this error. (closes #7868)
2021-02-14patch 8.2.2512: Vim9: compiling error test sometimes failsv8.2.2512Bram Moolenaar
Problem: Vim9: compiling error test sometimes fails. Solution: use WaitForAssert() instead of sleeping for a bit. (Dominique Pellé, closes #7837)
2021-02-12patch 8.2.2505: Vim9: crash after defining function with invalid return typev8.2.2505Bram Moolenaar
Problem: Vim9: crash after defining function with invalid return type. Solution: Clear function growarrays. Fix memory leak.
2021-02-12patch 8.2.2504: Vim9: crash when using an argument from a closurev8.2.2504Bram Moolenaar
Problem: Vim9: crash when using an argument from a closure. Solution: Check if gen_load_outer is NULL. (closes #7821)