[Bug 145] Can't refer to global scope after a cast
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 18 05:11:55 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=145
deewiant at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Priority|P2 |P3
------- Comment #1 from deewiant at gmail.com 2006-05-18 07:11 -------
Just wrap .somefunc(2) in brackets:
int somefunc(int i) { return i; }
class someclass{
// int somefunc() {...}
uint otherfunc(){
return cast(uint)(.somefunc(2));
}
}
I guess it's still a bug, since the parser should be able to realise that we're
not trying to, for instance, call a method of cast(uint)'s named somefunc. But
it's not really that important.
--
More information about the Digitalmars-d-bugs
mailing list