comparison src/testdir/test_method.vim @ 17732:1726c2db81bf v8.1.1863

patch 8.1.1863: confusing error when using a builtin function as method commit https://github.com/vim/vim/commit/9174639a82799011cfa0013cbc4c4709b3833bf0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 22:22:31 2019 +0200 patch 8.1.1863: confusing error when using a builtin function as method Problem: Confusing error when using a builtin function as method while it does not support that. Solution: Add a specific error message.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 22:30:04 +0200
parents 14ac8c31e598
children 117c7795a979
comparison
equal deleted inserted replaced
17731:314da6ab06bd 17732:1726c2db81bf
132 call assert_fails('eval "text"->{x -> x .. " extended"} ()', 'E274:') 132 call assert_fails('eval "text"->{x -> x .. " extended"} ()', 'E274:')
133 133
134 " todo: lambda accepts more arguments than it consumes 134 " todo: lambda accepts more arguments than it consumes
135 " call assert_fails('eval "text"->{x -> x .. " extended"}("more")', 'E99:') 135 " call assert_fails('eval "text"->{x -> x .. " extended"}("more")', 'E99:')
136 endfunc 136 endfunc
137
138 func Test_method_not_supported()
139 call assert_fails('eval 123->changenr()', 'E276:')
140 endfunc