aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_expr.vim
diff options
context:
space:
mode:
Diffstat (limited to 'test/old/testdir/test_expr.vim')
-rw-r--r--test/old/testdir/test_expr.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/old/testdir/test_expr.vim b/test/old/testdir/test_expr.vim
index c9797551ee..95ae54b6c1 100644
--- a/test/old/testdir/test_expr.vim
+++ b/test/old/testdir/test_expr.vim
@@ -613,7 +613,8 @@ func Test_function_with_funcref()
call assert_equal(4, Ref('text'))
END
call CheckTransLegacySuccess(lines)
- " cannot create s: variable in :def function
+ " skip CheckTransDefSuccess(), cannot assign to script variable
+ call map(lines, {k, v -> v =~ 'legacy' ? v : substitute(v, 's:', '', 'g')})
call CheckTransVim9Success(lines)
endfunc