xref: /PHP-8.3/Zend/tests/match/038.phpt (revision 9fa1d133)
1--TEST--
2Test multiple default arms in match in different arms
3--FILE--
4<?php
5
6match (1) {
7    default => 'foo',
8    1 => 'bar',
9    2 => 'baz',
10    default => 'qux',
11};
12
13?>
14--EXPECTF--
15Fatal error: Match expressions may only contain one default arm in %s on line 7
16