xref: /PHP-7.1/Zend/tests/list_010.phpt (revision 4f077aee)
1--TEST--
2Do not allow mixing [] and list()
3--FILE--
4<?php
5
6list([$a]) = [[1]];
7var_dump($a);
8
9?>
10--EXPECTF--
11Fatal error: Cannot mix [] and list() in %s on line %d
12