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