void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" def foo(cls): return cls @foo class Bar2(object): def __init__(self): print(self.<warning descr="Unresolved attribute reference 'hello' for class 'Bar2'">hello</warning>) """) ); }