summaryrefslogtreecommitdiff
path: root/tests/functional/d/duplicate/duplicate_bases.py
blob: 3290a6b29d1804f692e9e687cef9ff2045990dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Test duplicate bases error."""
# pylint: disable=missing-docstring,too-few-public-methods


class Duplicates(str, str):  # [duplicate-bases]
    pass


class Alpha(str):
    pass


class NotDuplicates(Alpha, str):
    """The error should not be emitted for this case, since the
    other same base comes from the ancestors."""


print(Duplicates.__mro__)