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
repo.submodule('sort') returns reference to IterableList.sort() method, not Submodule instance #1091
changed the title [-]`repo.submodule['sort']` returns reference to sort() method, not Submodule instance[/-][+]`repo.submodule('sort')` returns reference to sort() method, not Submodule instance[/+]on Nov 26, 2020
changed the title [-]`repo.submodule('sort')` returns reference to sort() method, not Submodule instance[/-][+]`repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance[/+]on Nov 26, 2020
Thanks a lot for taking the time to illustrate the issue and for making it reproducible!
It looks like in order to fix this, one would have to fix the indexex access of IterableList to make this kind of code work across the board.
As these are used in many places, similar issues would be present in other places, too. References come to mind.
Activity
[-]`repo.submodule['sort']` returns reference to sort() method, not Submodule instance[/-][+]`repo.submodule('sort')` returns reference to sort() method, not Submodule instance[/+][-]`repo.submodule('sort')` returns reference to sort() method, not Submodule instance[/-][+]`repo.submodule('sort')` returns reference to IterableList.sort() method, not Submodule instance[/+]Byron commentedon Nov 27, 2020
Thanks a lot for taking the time to illustrate the issue and for making it reproducible!
It looks like in order to fix this, one would have to fix the indexex access of
IterableListto make this kind of code work across the board.As these are used in many places, similar issues would be present in other places, too. References come to mind.