You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vim9scriptclass Base
defMethod(arg =0)
echom'Method'enddefendclassclass Child extends Base
defnew()
super.Method()
enddefendclass
Child.new()
That makes vim crash.
Notice that the method of the base class needs to have at least one argument to make vim crash.
I was trying to make a helper function for the child classes to use with new(), when I hit the wall. Replacing super.Method() with Base.Method() doesn't crash, but it says E1325: Method not found on class "Base": Method().
Steps to reproduce
Source the following script:
That makes vim crash.
Notice that the method of the base class needs to have at least one argument to make vim crash.
I was trying to make a helper function for the child classes to use with new(), when I hit the wall. Replacing
super.Method()
withBase.Method()
doesn't crash, but it saysE1325: Method not found on class "Base": Method()
.I attached the stack trace at the end.
Expected behaviour
Not crashing.
Version of Vim
9.0.1592
Environment
OS: MacOS 13.1
Terminal: iTerm 3.4.19
$TERM: xterm-256color
Shell: Fish 3.6.1
Logs and stack traces
The text was updated successfully, but these errors were encountered: