www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17270] New: std.experimental.Final fails on pointers

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: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

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);

--
Mar 22