mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
12 lines
432 B
Python
12 lines
432 B
Python
match 42:
|
|
case {'foo': 1}:
|
|
pass
|
|
case {<error descr="Key pattern can only be a value pattern or a literal pattern">foo</error>: 1}:
|
|
pass
|
|
case {<error descr="Key pattern can only be a value pattern or a literal pattern">[foo]</error>: 1}:
|
|
pass
|
|
case {foo.bar: 1}:
|
|
pass
|
|
case {<error descr="Key pattern can only be a value pattern or a literal pattern">str()</error>: 1}:
|
|
pass
|