Files
openide/python/testData/codeInsight/classMRO/DuplicatedBaseClasses.py
Mikhail Golubev 28bb6dee75 PY-20026 PyClassImpl#mroLinearize() properly handles duplicate base classes
The exception could happen in this case because we used the same cached
result of MRO linearization twice without defencive copying. Then later,
as a side effect of that, in mroMerge() we deleted one "head" from
several sequences simultaneously, hence the IndexOutOfBoundsException.
2016-07-15 18:39:11 +03:00

7 lines
67 B
Python

class Base(object):
pass
class MyClass(Base, Base):
pass