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