void () { doTestByText(""" from typing_extensions import Literal class A: pass assert isinstance(A(), <error descr="'Literal' cannot be used with instance and class checks">Literal</error>) B = Literal assert issubclass(A, <error descr="'Literal' cannot be used with instance and class checks">B</error>) assert isinstance(A(), <error descr="'Literal' cannot be used with instance and class checks">Literal[1]</error>) assert issubclass(A, <error descr="'Literal' cannot be used with instance and class checks">B[1]</error>) C = B[1] assert issubclass(A, <error descr="'Literal' cannot be used with instance and class checks">C</error>)"""); }