void () { doTestByText(""" from typing import Protocol, TypeVar class A: pass \s T = TypeVar("T") assert isinstance(A(), Protocol) B = Protocol assert issubclass(A, B) assert isinstance(A(), <error descr="Parameterized generics cannot be used with instance and class checks">Protocol[T]</error>) assert issubclass(A, <error descr="Parameterized generics cannot be used with instance and class checks">B[T]</error>) C = B[T] assert issubclass(A, <error descr="Parameterized generics cannot be used with instance and class checks">C</error>)"""); }