[Issue 10484] [2.064alpha]8635:postfix expressions for new without parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 26 20:37:50 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10484
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-26 20:37:46 PDT ---
I don't think it's possible without creating problems:
-----
class C
{
static class D
{
static int opCall() { return 0; }
}
}
void main()
{
int i = new C().D(); // instance of C + D's static opCall
Object d = new C.D(); // instance of D
}
-----
The last line is the problematic one.
--
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