php-src/Zend/tests/ns_094.phpt

15 lines
282 B
Plaintext
Raw Normal View History

--TEST--
Type group use declarations should not allow override on inner itens
--FILE--
<?php
// should throw syntax errors
use const Foo\Bar\{
A,
const B,
function C
};
--EXPECTF--
Parse error: syntax error, unexpected 'const' (T_CONST), expecting '}' in %s on line 7