Mercurial > vim
comparison src/testdir/test_vim9_script.vim @ 19455:655631882288 v8.2.0285
patch 8.2.0285: unused error message; cannot create s:var
Commit: https://github.com/vim/vim/commit/0bbf722aaaa75b1bbe87ef6afc44c5fff8e3893b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 19 22:31:48 2020 +0100
patch 8.2.0285: unused error message; cannot create s:var
Problem: Unused error message. Cannot create s:var.
Solution: Remove the error message. Make assignment to s:var work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 19 Feb 2020 22:45:03 +0100 |
parents | b26e96f7c12f |
children | 423b27246383 |
comparison
equal
deleted
inserted
replaced
19454:f83a66aaea44 | 19455:655631882288 |
---|---|
63 | 63 |
64 s:appendToMe ..= 'yyy' | 64 s:appendToMe ..= 'yyy' |
65 assert_equal('xxxyyy', s:appendToMe) | 65 assert_equal('xxxyyy', s:appendToMe) |
66 s:addToMe += 222 | 66 s:addToMe += 222 |
67 assert_equal(333, s:addToMe) | 67 assert_equal(333, s:addToMe) |
68 s:newVar = 'new' | |
69 assert_equal('new', s:newVar) | |
68 enddef | 70 enddef |
69 | 71 |
70 func Test_assignment_failure() | 72 func Test_assignment_failure() |
71 call CheckDefFailure(['let var=234'], 'E1004:') | 73 call CheckDefFailure(['let var=234'], 'E1004:') |
72 call CheckDefFailure(['let var =234'], 'E1004:') | 74 call CheckDefFailure(['let var =234'], 'E1004:') |