On 03.08.2018 at 20:47, Pedro Magalhães wrote:

> On Fri, Aug 3, 2018 at 7:22 PM Christoph M. Becker <cmbecke...@gmx.de>
> wrote:
>
>> Frankly, I don't understand what this bug report is about,
>> <https://3v4l.org/38lmA> looks pretty much expected (note that the error
>> message is totally different from what has been reported; there is no
>> class D in the reproduce script).
> 
> Yes, the report is not very clear. But if we follow the docs logic,
> A::values in your example should fail to compile as it doesn't have the
> same signature (return type) as the method from the trait T.

Ah, now I see.  Thanks!

In other words, <https://3v4l.org/2pERT> is fine, but
<https://3v4l.org/ouO0R> is not.  I find that rather strange.

-- 
Christoph M. Becker

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to