[Issue 9708] New: inout breaks zero parameter IFTI

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 12 15:11:54 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9708

           Summary: inout breaks zero parameter IFTI
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nilsbossung at googlemail.com


--- Comment #0 from Nils <nilsbossung at googlemail.com> 2013-03-12 15:11:53 PDT ---
---
cat > test.d <<code
struct S
{
    void f()(inout(Object)) inout {}
}
void main()
{
    S s;
    s.f(new Object);
} 
code
dmd -c -o- test.d
---
test.d(8): Error: template test.S.f does not match any function template
declaration. Candidates are:
test.d(3):        test.S.f()(inout(Object))
test.d(8): Error: template test.S.f()(inout(Object)) cannot deduce template
function from argument types !()(Object)
---

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