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

          Issue ID: 17270
           Summary: std.experimental.Final fails on pointers
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: [email protected]
          Reporter: [email protected]

The following code fails on this code, because unary * returns int and not
int*.

    import std.experimental.typecons : Final;
    int i = 1;
    Final!(int*) fp = &i;
    assert(*fp == 1);

--

Reply via email to