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

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

On Tuesday, 29 May 2018 at 21:19:01 UTC, DigitalDesigns wrote:


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


More information about the Digitalmars-d-learn mailing list