void () { runWithLanguageLevel(LanguageLevel.getLatest(), () -> doTestByText(""" from typing import ClassVar x: <warning descr="'ClassVar' can only be used for assignments in class body">ClassVar[int]</warning> = 1 """)); }