[vim/vim] Allow initializing class member to protected class method (PR #18949)

3 views
Skip to first unread message

Foxe Chen

unread,
Dec 16, 2025, 6:01:07 PM (7 hours ago) Dec 16
to vim/vim, Subscribed

Before, this script would error:

vim9script

class Test
    static var func: func = Test._Run

    static def _Run(): void
    enddef
endclass

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18949

Commit Summary

  • 2ed44c1 allow initializing class member to protected class method

File Changes

(5 files)

Patch Links:


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

Reply all
Reply to author
Forward
0 new messages