Files
openide/python/testData/highlighting/doubleStarPatternOutsideMappingPattern.py
2021-10-18 13:57:02 +00:00

19 lines
866 B
Python

match 42:
case <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>:
pass
case (<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>):
pass
case (<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>,):
pass
case [<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>]:
pass
case {'foo': bar, **xs}:
pass
case str(<error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>):
pass
case <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error> as alias:
pass
case [xs] | <error descr="Double star pattern cannot be used outside mapping patterns">**xs</error>:
pass