[Differential] [Request, 49 lines] D3640: Skip explicit `self` argument when calling via class.
flherne (Francis Herne)
noreply at phabricator.kde.org
Sat Dec 10 22:58:35 UTC 2016
flherne created this revision.
flherne added a reviewer: brauch.
flherne set the repository for this revision to R53 KDevelop: Python Support.
Restricted Application added a subscriber: kdevelop-devel.
Instance methods can be called via the class:
Self arguments are handled separately. With an explicit `instance` argument as in the example, its type was wrongly used for the next argument with all subsequent argtypes offset by one.
Simply skip such arguments where they exist.
Test `method_explicit_self` previously failed, now passes.
Test `parent_constructor_arg_type` previously failed.
Now it fails on the first run, but gets the correct type if reloading the document.
Probably related to https://bugs.kde.org/show_bug.cgi?id=306213
Other new tests passed already.
No test regressions.
R53 KDevelop: Python Support
To: flherne, brauch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop-devel