[Issue 4205] New: Strange error message when trying to call unknown method on string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 18 15:52:29 PDT 2010


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

           Summary: Strange error message when trying to call unknown
                    method on string
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: luk.wrzosek at gmail.com


--- Comment #0 from Lukasz Wrzosek <luk.wrzosek at gmail.com> 2010-05-18 15:52:27 PDT ---
//============================= 
module fooo;

class C
{
}

void main(string[] args)
{
    int i = 10;
    string str = "123";
    C c = new C;

    i.toHash();      //tmp.d(13): Error: no property 'toHash' for type 'int'
    i.someFunc();    //tmp.d(14): Error: no property 'someFunc' for type 'int'

    c.toHash();
    c.someFunc();    //tmp.d(17): Error: no property 'someFunc' for type
'fooo.C'

    str.toHash();    //tmp.d(19): Error: undefined identifier module
fooo.toHash
    str.someFunc();  //tmp.d(20): Error: undefined identifier module
fooo.someFunc
}

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