www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11930] New: Github regression -- Alias this not considered in is(T unused: U) matching

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930

           Summary: Github regression -- Alias this not considered in is(T
                    unused: U) matching
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: puneet coverify.org



---


class BarObj {}
struct Bar {
  BarObj _obj;
  alias _obj this;
}
BarObj getBarObj(T)(T t) {
  static if(is(T unused: BarObj)) return t;
  else static assert(false, "Can not get BarObj from " ~ T.stringof);
}
void main() {
  Bar b;
  getBarObj(b);
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/3105

It has been caused by fixing issue 11875.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930




---

 https://github.com/D-Programming-Language/dmd/pull/3105
Works for me. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/a58b3735f6a5cf071605e6f2606e7f1be3d6c38f
Issue 11930 - Alias this not considered in is(T unused: U) matching

https://github.com/D-Programming-Language/dmd/commit/7ecbbce5fdbe36db303ac21b26aee7a226657488


[REG2.065a] Issue 11930 - Alias this not considered in is(T unused: U) matching

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930


Kenji Hara <k.hara.pg gmail.com> changed:

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


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 15 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11930




Commit pushed to release at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/287a7d107df20169b256b432ac9e048fde73e1fa


[REG2.065a] Issue 11930 - Alias this not considered in is(T unused: U) matching

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