[Issue 21463] New: std.typecons.Proxy declares opCmp when it should not

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 8 18:54:45 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21463

          Issue ID: 21463
           Summary: std.typecons.Proxy declares opCmp when it should not
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: tobias at pankrath.net

--
import std.typecons : Proxy;

struct Inner {}
class Outer
{
    Inner inner;
    mixin Proxy!inner;
}

int main() { return 0; }
--

> /usr/include/dlang/dmd/std/typecons.d(6762): Error: need member function opCmp() for struct Inner to compare

--


More information about the Digitalmars-d-bugs mailing list