[vim/vim] [vim9class] incorrect `string()` of funcref of object's function (Issue #15129)

7 views
Skip to first unread message

errael

unread,
Jun 29, 2024, 11:01:19 PM (3 days ago) Jun 29
to vim/vim, Subscribed

Steps to reproduce

vim9script

class C
    def C_F()
    enddef
endclass

var o = C.new()
var F = o.C_F
echo string(F)

outputs

function('g:C_F')

Expected behaviour

I'm not sure what's correct, function('object of C: C_F') seems weird but it does match a few patterns.

Version of Vim

9.1.516

Environment

ubuntu/gtk3

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/15129@github.com>

Reply all
Reply to author
Forward
0 new messages