void () { runWithLanguageLevel( LanguageLevel.PYTHON35, () -> doTest("(a: MyType1) -> MyType2", """ from collections import namedtuple MyType1 = namedtuple('MyType1', 'x y') MyType2 = namedtuple('MyType2', 'x y') def foo(a: MyType1) -> MyType2: pass expr = foo""") ); }