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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Lukasz Wrzosek <[email protected]> 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: -------