Mercurial > vim
view src/testdir/sautest/autoload/foo.vim @ 21184:2113e94dc726 v8.2.1143
patch 8.2.1143: Vim9: return type of remove() is any
Commit: https://github.com/vim/vim/commit/ad7c24932725b9ab37b65fe359a41f8ba3e3dfcf
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 5 20:55:29 2020 +0200
patch 8.2.1143: Vim9: return type of remove() is any
Problem: Vim9: return type of remove() is any.
Solution: Use the member type of the first argument, if known.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Jul 2020 21:00:05 +0200 |
parents | 9ffec4eb8d33 |
children | 6e1b0c4ab668 |
line wrap: on
line source
let g:loaded_foo_vim += 1 let foo#bar = {} func foo#bar.echo() let g:called_foo_bar_echo += 1 endfunc func foo#addFoo(head) return a:head .. 'foo' endfunc