January 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9424

           Summary: is() returns false for int
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: maximzms@gmail.com


--- Comment #0 from Maksim Zholudev <maximzms@gmail.com> 2013-01-29 08:06:55 PST ---
DMD from both v2.060 and git head report "int false" on the following file:
--------------------
struct Slice(T)
{
    this(SourceType)(SourceType source)
    {
        pragma(msg, SourceType.ElementType, " ", is(SourceType.ElementType));
    }
}

struct Array(T)
{
    alias T ElementType;

    auto constructSlice(Array* source)
    {
        return Slice!(T)(source);
    }
}

alias Array!(int) A;

void main()
{
}
--------------------
Attempt to use SourceType.ElementType inside Slice.this outside pragma statement leads to compilation errors.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9424


Maksim Zholudev <maximzms@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #1 from Maksim Zholudev <maximzms@gmail.com> 2013-04-29 07:25:18 PDT ---
Works with DMD Git head: https://github.com/D-Programming-Language/dmd/commit/66f3122cd17c1584db723370de27cd47f025e373

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------