comparison src/testdir/test_vim9_expr.vim @ 19912:d4fa9db88d16 v8.2.0512

patch 8.2.0512: Vim9: no optional arguments in func type Commit: https://github.com/vim/vim/commit/5deeb3f1f9db4eabd36e99cbf857fe376eb37e10 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 5 17:08:17 2020 +0200 patch 8.2.0512: Vim9: no optional arguments in func type Problem: Vim9: no optional arguments in func type. Solution: Check for question mark after type. Find function reference without function().
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Apr 2020 17:15:25 +0200
parents bd4f91762d0f
children 3c11b9f6fa03
comparison
equal deleted inserted replaced
19911:70edfdef3b83 19912:d4fa9db88d16
458 call CheckDefFailure("let x = [13] =~ [88]", 'Cannot compare list with list') 458 call CheckDefFailure("let x = [13] =~ [88]", 'Cannot compare list with list')
459 call CheckDefFailure("let x = [13] !~ [88]", 'Cannot compare list with list') 459 call CheckDefFailure("let x = [13] !~ [88]", 'Cannot compare list with list')
460 460
461 call CheckDefFailureMult(['let j: job', 'let chan: channel', 'let r = j == chan'], 'Cannot compare job with channel') 461 call CheckDefFailureMult(['let j: job', 'let chan: channel', 'let r = j == chan'], 'Cannot compare job with channel')
462 call CheckDefFailureMult(['let j: job', 'let x: list<any>', 'let r = j == x'], 'Cannot compare job with list') 462 call CheckDefFailureMult(['let j: job', 'let x: list<any>', 'let r = j == x'], 'Cannot compare job with list')
463 call CheckDefFailureMult(['let j: job', 'let x: func', 'let r = j == x'], 'Cannot compare job with func') 463 call CheckDefFailureMult(['let j: job', 'let Xx: func', 'let r = j == Xx'], 'Cannot compare job with func')
464 call CheckDefFailureMult(['let j: job', 'let x: func', 'let r = j == x'], 'Cannot compare job with func') 464 call CheckDefFailureMult(['let j: job', 'let Xx: func', 'let r = j == Xx'], 'Cannot compare job with func')
465 endfunc 465 endfunc
466 466
467 " test addition, subtraction, concatenation 467 " test addition, subtraction, concatenation
468 def Test_expr5() 468 def Test_expr5()
469 assert_equal(66, 60 + 6) 469 assert_equal(66, 60 + 6)