Yasuhiro Matsumoto wrote:

> ----------------------------------------
> let s:f = function('type')
> let s:fref = function('s:f')
> " => <SNR>1_f
> echo call(s:fref, ['x'])
> " => E117: Unknown function: <SNR>1_f
> ----------------------------------------
> 
> In this script, function('s:f') should be an error.
> 
> ----------------------------------------
> let s:fref = function('s:f')
> ----------------------------------------
> 
> 
> diff -r 2a798dca16bf src/eval.c
> --- a/src/eval.c      Wed Aug 06 19:09:16 2014 +0200
> +++ b/src/eval.c      Thu Aug 07 14:01:26 2014 +0900

[...]

This patch breaks a test.  I had postponed including it for that reason.
Also, since you can reproduce the problem, we should add a test for
that.


-- 
Laughing helps. It's like jogging on the inside.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui