Source the following script:
vim9script class A endclass export def F(options = {}): any return A enddef legacy let p = <SNR>1_F() legacy call p.new()
Vim should not crash.
9.0.1616
OS: MacOS 13.1
Terminal: iTerm 3.4.19
$TERM: xterm-256color
Shell: Fish 3.6.1
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x00000001002b6937 vim`trans_function_name_ext(pp=0x00007ff7bfefb360, is_global=0x0000000000000000, skip=0, flags=1, fdp=0x00007ff7bfefb328, partial=0x00007ff7bfefb320, type=0x0000000000000000, ufunc=0x0000000000000000) at userfunc.c:4164:9 frame #1: 0x00000001002bd40e vim`ex_call(eap=0x00007ff7bfefb508) at userfunc.c:6229:14 frame #2: 0x00000001000ab28f vim`do_one_cmd(cmdlinep=0x00007ff7bfefb770, flags=7, cstack=0x00007ff7bfefb7a8, fgetline=(vim`getsourceline at scriptfile.c:2320), cookie=0x00007ff7bfefbee8) at ex_docmd.c:2582:2 frame #3: 0x00000001000a8382 vim`do_cmdline(cmdline="vim9script", fgetline=(vim`getsourceline at scriptfile.c:2320), cookie=0x00007ff7bfefbee8, flags=7) at ex_docmd.c:994:17 frame #4: 0x000000010020bfdb vim`do_source_ext(fname="autest.vim", check_other=0, is_vimrc=0, ret_sid=0x0000000000000000, eap=0x0000000000000000, clearvars=0) at scriptfile.c:1760:5 frame #5: 0x000000010020b4d1 vim`do_source(fname="autest.vim", check_other=0, is_vimrc=0, ret_sid=0x0000000000000000) at scriptfile.c:1906:12 frame #6: 0x000000010020b346 vim`cmd_source(fname="autest.vim", eap=0x00007ff7bfefc198) at scriptfile.c:1251:14 frame #7: 0x000000010020b17c vim`ex_source(eap=0x00007ff7bfefc198) at scriptfile.c:1277:2 frame #8: 0x00000001000ab28f vim`do_one_cmd(cmdlinep=0x00007ff7bfefc400, flags=11, cstack=0x00007ff7bfefc438, fgetline=0x0000000000000000, cookie=0x0000000000000000) at ex_docmd.c:2582:2 frame #9: 0x00000001000a8382 vim`do_cmdline(cmdline="so autest.vim", fgetline=0x0000000000000000, cookie=0x0000000000000000, flags=11) at ex_docmd.c:994:17 frame #10: 0x00000001000a90b1 vim`do_cmdline_cmd(cmd="so autest.vim") at ex_docmd.c:588:12 frame #11: 0x000000010035750b vim`exe_commands(parmp=0x00000001003c6b30) at main.c:3173:2 frame #12: 0x0000000100356556 vim`vim_main2 at main.c:790:2 frame #13: 0x0000000100353e4a vim`main(argc=6, argv=0x00007ff7bfefcde8) at main.c:441:12 frame #14: 0x00007ff806480310 dyld`start + 2432
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #12502 as completed via 5ca05fa.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()