Mercurial > vim
comparison src/testdir/test_vim9_func.vim @ 21335:af3663df42bf v8.2.1218
patch 8.2.1218: Vim9: cannot use 'text'->func()
Commit: https://github.com/vim/vim/commit/3d48e25dcb661eb09ccdaa73d4e2559201ff2eb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 15 14:15:52 2020 +0200
patch 8.2.1218: Vim9: cannot use 'text'->func()
Problem: Vim9: cannot use 'text'->func().
Solution: Recognize string at start of command.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 15 Jul 2020 14:30:04 +0200 |
parents | 7c50dfe302f8 |
children | 5dd4cbc1e9e6 |
comparison
equal
deleted
inserted
replaced
21334:d7dc824cbbe5 | 21335:af3663df42bf |
---|---|
353 ('text')->MyFunc() | 353 ('text')->MyFunc() |
354 assert_equal('text', var) | 354 assert_equal('text', var) |
355 ("some")->MyFunc() | 355 ("some")->MyFunc() |
356 assert_equal('some', var) | 356 assert_equal('some', var) |
357 | 357 |
358 'asdfasdf'->MyFunc() | |
359 assert_equal('asdfasdf', var) | |
360 | |
361 def UseString() | |
362 'xyork'->MyFunc() | |
363 enddef | |
364 UseString() | |
365 assert_equal('xyork', var) | |
366 | |
358 MyFunc( | 367 MyFunc( |
359 'continued' | 368 'continued' |
360 ) | 369 ) |
361 assert_equal('continued', | 370 assert_equal('continued', |
362 var | 371 var |