void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTestByText(""" from typing import List from typing_extensions import Final def outer(): x: Final[List[int]] = [1, 2, 3] def inner(): nonlocal x <warning descr="'x' is 'Final' and could not be reassigned">x</warning> = [4, 5] inner()""") ); }