void () { runWithLanguageLevel(LanguageLevel.getLatest(), () -> doTestByText(""" from typing import ClassVar class A: x = 1 # type: ClassVar[int] <warning descr="Cannot assign to class variable 'x' via instance">A().x</warning> = 2""")); }