void () { runWithLanguageLevel(LanguageLevel.getLatest(), () -> doTestByText(""" from typing import ClassVar class A: x = 1 # type: int class B(A): <warning descr="Cannot override instance variable 'x' (previously declared on base class 'A') with class variable">x</warning> = 2 # type: ClassVar[int]""")); }