string mixin output works when directly used but when generator is used D fails

Simen Kjærås simen.kjaras at gmail.com
Wed May 30 08:40:43 UTC 2018


On Tuesday, 29 May 2018 at 21:19:01 UTC, DigitalDesigns wrote:
> https://dpaste.dzfl.pl/67691db19ce8

Simplified:

interface A
{
     import std.meta : AliasSeq;
     alias a = AliasSeq!(__traits(getMember, B, "foo"));
     void foo();
}

class B : A
{
     void foo() { }
}

It seems the compiler is looking at the class before the 
interface is ready, and that the method thus isn't marked as 
implementing an interface method. Filed as 
https://issues.dlang.org/show_bug.cgi?id=18915

--
   Simen


More information about the Digitalmars-d-learn mailing list