void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTest("Cat", """ from typing import NamedTuple class Cat(NamedTuple): name: str age: int expr = Cat("name", 5)._make(["newname", 6])""") ); runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTest("Cat", """ from typing import NamedTuple class Cat(NamedTuple): name: str age: int expr = Cat._make(["newname", 6])""") ); runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTest("Cat", """ from typing import NamedTuple Cat = NamedTuple("Cat", name=str, age=int) expr = Cat("name", 5)._make(["newname", 6])""") ); runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTest("Cat", """ from typing import NamedTuple Cat = NamedTuple("Cat", name=str, age=int) expr = Cat._make(["newname", 6])""") ); }