Thread overview
[Issue 7703] New: [UFCS] explicit template function instantiation as property
Mar 13, 2012
Kasumi Hanazuki
Mar 14, 2012
Kenji Hara
Mar 16, 2012
Walter Bright
March 13, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7703

           Summary: [UFCS] explicit template function instantiation as
                    property
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hanazuki@gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki@gmail.com> 2012-03-13 15:21:09 PDT ---
DMD(2.059HEAD) rejects UFCS with an explicitly instantiated template function
called as a property.

----

void f(T)(T a) { }

void main() {
    int x;
    x.f;        // accepted
    x.f();      // accepted
    x.f!int;    // rejected -- "f(x) isn't a template"
    x.f!int();  // accepted
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 14, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7703


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-03-14 08:33:12 PDT ---
https://github.com/D-Programming-Language/dmd/pull/812

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 16, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7703


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


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