Compiler silently ignores some method overloads

Marc Schütz via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 11 02:12:20 PDT 2016


On Tuesday, 10 May 2016 at 22:17:00 UTC, pineapple wrote:
> On Tuesday, 10 May 2016 at 09:57:11 UTC, pineapple wrote:
>> On Monday, 9 May 2016 at 18:56:15 UTC, Peter Häggman wrote:
>>> No problem here (tested with everything in a single module). 
>>> I can't help more.
>>> Front end version ?
>>
>> Well, this is the full struct that has those malfeasant 
>> overrides: http://pastebin.com/9h2s028J
>
> I found the problem -
>
> It turns out I was importing that glcolor module at both the 
> top of the file and in a version(unittest) block. I'm not sure 
> _why_ that broke things, but removing the redundant unittest 
> import fixed my problem.

This looks like a bug. Please report it at 
https://issues.dlang.org/ , if possible with a minimal example, 
thanks!


More information about the Digitalmars-d-learn mailing list