mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 17:09:38 +07:00
GitOrigin-RevId: 718645cc5dfd6d0a14f1bd802f3c5bb2bb2c6074
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
|