mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
a5360e80c2
RFC: https://wiki.php.net/rfc/final_class_const Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
17 lines
203 B
PHP
17 lines
203 B
PHP
--TEST--
|
|
Ensure an interface may not shadow an inherited constant.
|
|
--FILE--
|
|
<?php
|
|
interface I1 {
|
|
const FOO = 10;
|
|
}
|
|
|
|
interface I2 extends I1 {
|
|
const FOO = 10;
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
Done
|