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
{{ message }}
Repository navigation
Commit 0321e7a
Browse filesBrowse the repository at this point in the historyBrowse files
patch 9.2.1208: Vim9: type arguments not used when calling method through interface
Problem: Vim9: when a generic method is called with type arguments in a
:def function through an interface or a parent class, the method
of the object is called without the type arguments. Its type
variables are then not checked, e.g. "Conv<string>()" can return a
number.
Solution: Keep the method with the type arguments in the ISN_METHODCALL
instruction and call the method of the object with the same type
arguments (Yegappan Lakshmanan).
Looking up the method with the type arguments is slow, so the method
found is cached in the instruction for the last object class used.
fixes: #21550
closes: #21494
Assisted-by: Claude
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
0 commit comments