[Issue 9177] New: Wrong `alias func this` incorrectly reports error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 18 04:19:11 PST 2012


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

           Summary: Wrong `alias func this` incorrectly reports error
                    message
           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.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-18 04:19:10 PST ---
This code reports weird error without file/line.

code:
----
struct S
{
    int foo(int){ return 0; }
    alias foo this;
}
pragma(msg, is(S : int));


output:
---
Error: function test.S.foo (int) is not callable using argument types ()

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