[Issue 7703] New: [UFCS] explicit template function instantiation as property

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 13 15:21:01 PDT 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 at puremagic.com
        ReportedBy: k.hanazuki at gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanazuki at 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: -------


More information about the Digitalmars-d-bugs mailing list