xref: /PHP-7.4/Zend/tests/bug66252.phpt (revision 782352c5)
1--TEST--
2Bug #66252 (Problems in AST evaluation invalidating valid parent:: reference)
3--FILE--
4<?php
5class A {
6	const HW = "this is A";
7}
8class B extends A {
9	const BHW = parent::HW . " extended by B";
10}
11const C = B::BHW;
12echo C, "\n";
13--EXPECT--
14this is A extended by B
15