1
0
forked from aniani/vim

patch 8.2.1766: Vim9: Some tests are still using :let

Problem:    Vim9: Some tests are still using :let.
Solution:   Change the last few declarations to use :var.
This commit is contained in:
Bram Moolenaar
2020-09-27 22:47:05 +02:00
parent 9830938e77
commit 7a9cbca00a
11 changed files with 177 additions and 187 deletions

View File

@@ -83,13 +83,13 @@ endfunc
def Test_vim9_maparg()
nmap { w
let one: string = maparg('{')
var one: string = maparg('{')
assert_equal('w', one)
let two: string = maparg('{', 'n')
var two: string = maparg('{', 'n')
assert_equal('w', two)
let three: string = maparg('{', 'n', 0)
var three: string = maparg('{', 'n', 0)
assert_equal('w', three)
let four: dict<any> = maparg('{', 'n', 0, 1)
var four: dict<any> = maparg('{', 'n', 0, 1)
assert_equal(['{', 'w', 'n'], [four.lhs, four.rhs, four.mode])
nunmap {
enddef