summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_script.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.3650: Vim9: for loop variable can be a list memberv8.2.3650Bram Moolenaar2021-11-221-1/+25
| | | | | Problem: Vim9: for loop variable can be a list member. Solution: Check for valid variable name. (closes #9179)
* patch 8.2.3649: Vim9: error for variable declared in while loopv8.2.3649Bram Moolenaar2021-11-221-0/+15
| | | | | Problem: Vim9: error for variable declared in while loop. Solution: Do not keep the first variable. (closes #9191)
* patch 8.2.3637: typos in test filesv8.2.3637Dominique Pelle2021-11-211-2/+2
| | | | | Problem: Typos in test files. Solution: Correct the typos. (Dominique Pellé, closes #9175)
* patch 8.2.3558: Vim9: asserting the wrong variablev8.2.3558Bram Moolenaar2021-10-231-1/+1
| | | | | Problem: Vim9: asserting the wrong variable. Solution: Don't use Foo, use Goo.
* patch 8.2.3557: Vim9: cannot call imported funcref at script levelv8.2.3557Bram Moolenaar2021-10-221-0/+27
| | | | | Problem: Vim9: cannot call imported funcref at script level. Solution: Check for an imported function. (closes #9007)
* patch 8.2.3457: MS-Windows Vim9: test executed and failsv8.2.3457Bram Moolenaar2021-09-261-0/+4
| | | | | Problem: MS-Windows Vim9: test executed and fails. Solution: Add extra check for not being on MS-Windows.
* patch 8.2.3413: Vim9: too many characters are allowed in import namev8.2.3413Bram Moolenaar2021-09-081-0/+17
| | | | | Problem: Vim9: too many characters are allowed in import name. Solution: Disallow ':' and '#', check for white space. (closes #8845)
* patch 8.2.3412: Vim9: importing the wrong filev8.2.3412Bram Moolenaar2021-09-071-2/+3
| | | | | Problem: Vim9: importing the wrong file. Solution: Correct the file name. Delete the file afterwards.
* patch 8.2.3411: Vim9: crash when using base name of importv8.2.3411Bram Moolenaar2021-09-071-0/+15
| | | | | Problem: Vim9: crash when using base name of import. (Naohiro Ono) Solution: Check the import flags. (closes #8843)
* patch 8.2.3364: Vim9: crash when :for is skippedv8.2.3364rbtnn2021-08-211-0/+64
| | | | | Problem: Vim9: crash when :for is skipped. Solution: Skip more code generation. (Naruhiko Nishino, closes #8777)
* patch 8.2.3363: when :edit reuses the current buffer the alternate file is setv8.2.3363Bram Moolenaar2021-08-211-1/+1
| | | | | | | Problem: When :edit reuses the current buffer the alternate file is set to the same buffer. Solution: Only set the alternate file when not reusing the buffer. (closes #8783)
* patch 8.2.3361: Vim9: crash with nested :whilev8.2.3361rbtnn2021-08-201-0/+83
| | | | | Problem: Vim9: crash with nested :while. Solution: Handle skipping better. (Naruhiko Nishino, closes #8778)
* patch 8.2.3353: Vim9: type of argument for negate not checked at compile timev8.2.3353Bram Moolenaar2021-08-151-3/+3
| | | | | Problem: Vim9: type of argument for negate not checked at compile time. Solution: Add a compile time check.
* patch 8.2.3312: Vim9: after "if false" line breaks in expression not skippedv8.2.3312Bram Moolenaar2021-08-071-0/+8
| | | | | Problem: Vim9: after "if false" line breaks in expression not skipped. Solution: Do parse the expression. (closes #8723)
* patch 8.2.3307: Vim9: :echoconsole cannot access local variablesv8.2.3307Bram Moolenaar2021-08-071-2/+9
| | | | | Problem: Vim9: :echoconsole cannot access local variables. Solution: Handle like other :echo commands. (closes #8708)
* patch 8.2.3305: Vim9: :finally in skipped block not handled correctlyv8.2.3305rbtnn2021-08-071-0/+14
| | | | | | Problem: Vim9: :finally in skipped block not handled correctly. Solution: Check whether :finally is in a skipped block. (Naruhiko Nishino, closes #8724)
* patch 8.2.3281: Vim9: TODO items in tests can be taken care ofv8.2.3281Bram Moolenaar2021-08-031-4/+2
| | | | | Problem: Vim9: TODO items in tests can be taken care of. Solution: Update test for now working functionality. (closes #8694)
* patch 8.2.3271: Vim9: cannot use :command or :au with block in :def functionv8.2.3271Bram Moolenaar2021-08-011-0/+28
| | | | | Problem: Vim9: cannot use :command or :au with a block in a :def function. Solution: Recognize the start of the block.
* patch 8.2.3249: Vim9: error for re-imported function with default argumentv8.2.3249Bram Moolenaar2021-07-291-0/+6
| | | | | Problem: Vim9: error for re-imported function with default argument. Solution: Do not check argument type if it is still unknown. (closes #8653)
* patch 8.2.3248: Vim9: error message for wrong input uses wrong line numberv8.2.3248Bram Moolenaar2021-07-291-0/+10
| | | | | Problem: Vim9: error message for wrong input uses wrong line number. Solution: Use the line number of the start of the command. (issue #8653)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-1/+1
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221Yegappan Lakshmanan2021-07-251-2/+2
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
* patch 8.2.3216: Vim9: crash when using variable in a loop at script levelv8.2.3216Bram Moolenaar2021-07-251-0/+28
| | | | | | | Problem: Vim9: crash when using variable in a loop at script level. Solution: Do not clear the variable if a function was defined. Do not create a new entry in sn_var_vals every time. (closes #8628)
* patch 8.2.3189: Vim9: error when using "try|"v8.2.3189Bram Moolenaar2021-07-201-0/+3
| | | | | Problem: Vim9: error when using "try|". Solution: Allow for "|" right after a command.
* patch 8.2.3186: Vim9: not all failures for import testedv8.2.3186Bram Moolenaar2021-07-191-0/+24
| | | | | Problem: Vim9: not all failures for import tested Solution: Test more import failures
* patch 8.2.3179: Vim9: cannot assign to an imported variable at script levelv8.2.3179Bram Moolenaar2021-07-181-24/+55
| | | | | Problem: Vim9: cannot assign to an imported variable at script level. Solution: Lookup imported items when assigning.
* patch 8.2.3178: Vim9: the file name of an :import cannot be an expressionv8.2.3178Bram Moolenaar2021-07-181-41/+8
| | | | | | Problem: Vim9: the file name of an :import cannot be an expression. Solution: Accept an expression that results in a string. Do not support :import in a function.
* patch 8.2.3177: Vim9: can not use "for _ in expr" at script levelv8.2.3177Bram Moolenaar2021-07-181-0/+6
| | | | | Problem: Vim9: can not use "for _ in expr" at script level. Solution: Skip assignment if the loop variable is "_".
* patch 8.2.3166: Vim9: nested autoload call error overruled by "Unknown error"v8.2.3166Bram Moolenaar2021-07-151-0/+40
| | | | | | Problem: Vim9: nested autoload call error overruled by "Unknown error". Solution: Check need_rethrow before giving an "Unknown error". (closes #8568)
* patch 8.2.3151: Vim9: profiling fails if nested function is also profiledv8.2.3151Bram Moolenaar2021-07-111-0/+17
| | | | | Problem: Vim9: profiling fails if nested function is also profiled. Solution: Use the compile type from the outer function. (closes #8543)
* patch 8.2.3147: Vim9: profiling does not work with a nested functionv8.2.3147Bram Moolenaar2021-07-111-3/+13
| | | | | | | Problem: Vim9: profiling does not work with a nested function. Solution: Also compile a nested function without profiling. (closes #8543) Handle that compiling may cause the table of compiled functions to change.
* patch 8.2.3146: Vim9: line number wrong for :execute argumentv8.2.3146Bram Moolenaar2021-07-111-0/+10
| | | | | Problem: Vim9: line number wrong for :execute argument. Solution: Use the line number of the :execute command itself. (closes #8537)
* patch 8.2.3145: Vim9: profile test fails without profile featurev8.2.3145Bram Moolenaar2021-07-111-0/+2
| | | | | Problem: Vim9: profile test fails without profile feature. Solution: Check the profile feature is present.
* patch 8.2.3143: Vim9: wrong context if lambda called from profiled functionv8.2.3143Bram Moolenaar2021-07-111-0/+13
| | | | | | Problem: Vim9: A lambda may be compiled with the wrong context if it is called from a profiled function. Solution: Compile the lambda with and without profiling. (closes #8543)
* patch 8.2.3137: Vim9: no error when a line only has a variable namev8.2.3137Bram Moolenaar2021-07-101-2/+17
| | | | | | 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)
* patch 8.2.3130: Vim9: import test failsv8.2.3130Bram Moolenaar2021-07-081-3/+3
| | | | | | Problem: Vim9: import test fails. Solution: Rename directory back to "import", use "p" to avoid an error when the directory already exists.
* patch 8.2.3129: Vim9: imported uninitialized list does not get type checkedv8.2.3129Bram Moolenaar2021-07-081-3/+11
| | | | | Problem: Vim9: imported uninitialized list does not get type checked. Solution: Get type from imported variable.
* patch 8.2.3126: Vim9: for loop error reports wrong line numberv8.2.3126Bram Moolenaar2021-07-081-0/+1
| | | | | | Problem: Vim9: for loop error reports wrong line number. Solution: Save and restore the line number when evaluating the expression. (closes #8514)
* patch 8.2.3124: Vim9: no error for white space between option and "=9"v8.2.3124Bram Moolenaar2021-07-081-0/+39
| | | | | Problem: Vim9: no error for white space between option and "=9". Solution: Check for extraneous white space. (issue #8408)
* patch 8.2.3123: Vim9: confusing error when using white space after optionv8.2.3123Bram Moolenaar2021-07-081-5/+14
| | | | | | Problem: Vim9: confusing error when using white space after option, before one of "!&<". Solution: Give a specific error. (issue #8408)
* patch 8.2.3118: Vim9: "any" type not handled correctly in for loopv8.2.3118Bram Moolenaar2021-07-071-0/+6
| | | | | Problem: Vim9: "any" type not handled correctly in for loop. Solution: Change compile time check into runtime check. (closes #8516)
* patch 8.2.3117: Vim9: type not properly checked in for loopv8.2.3117Bram Moolenaar2021-07-071-0/+8
| | | | | | Problem: Vim9: type not properly checked in for loop. Solution: Have items() return a list of lists. Add runtime type checks. (closes #8515)
* patch 8.2.3113: no error when for loop variable shadows script variablev8.2.3113Bram Moolenaar2021-07-051-6/+6
| | | | | Problem: No error when for loop variable shadows script variable. Solution: Check for the error. (closes #8512)
* patch 8.2.3111: Vim9: confusing error with extra whitespace before colonv8.2.3111Bram Moolenaar2021-07-051-0/+7
| | | | | Problem: Vim9: confusing error with extra whitespace before colon. Solution: Check for colon after white space. (closes #8513)
* patch 8.2.3099: Vim9: missing catch/finally not reported at script levelv8.2.3099Bram Moolenaar2021-07-041-0/+9
| | | | | Problem: Vim9: missing catch/finally not reported at script level. Solution: Give an error. (closes #8487)
* patch 8.2.3078: Vim9: profile test failsv8.2.3078Bram Moolenaar2021-06-301-0/+19
| | | | | Problem: Vim9: profile test fails. Solution: Make throw in :catch jump to :finally.
* patch 8.2.3077: Vim9: an error in a catch block is not reportedv8.2.3077Bram Moolenaar2021-06-301-0/+35
| | | | | Problem: Vim9: an error in a catch block is not reported. Solution: Put the "in catch" flag in the try stack. (closes #8478)
* patch 8.2.3076: Vim9: using try in catch block causes a hangv8.2.3076Bram Moolenaar2021-06-301-0/+26
| | | | | Problem: Vim9: using try in catch block causes a hang. Solution: Save and restore the ec_in_catch flag. (closes #8478)
* patch 8.2.3065: Vim9: error when sourcing script twice and reusing functionv8.2.3065Bram Moolenaar2021-06-271-0/+21
| | | | | | Problem: Vim9: error when sourcing script twice and reusing a function name. Solution: Check if the function is dead. (closes #8463)
* patch 8.2.3051: Vim9: for loop with one list variable does not workv8.2.3051Bram Moolenaar2021-06-261-0/+7
| | | | | Problem: Vim9: for loop with one list variable does not work. Solution: Use a separate flag for unpacking a list. (closes #8452)