void () { runWithLanguageLevel( LanguageLevel.PYTHON35, () -> doTestByText(""" import typing class Proto(typing.Protocol): def function(self) -> None: pass class Cls: def __eq__(self, other) -> 'Cls': pass def function(self) -> None: pass def method(p: Proto): pass method(Cls())""") ); }