[Issue 10616] class C: C.D{static class D{}} does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 18 06:42:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10616
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-07-18 06:42:00 PDT ---
That's a borderline enhancement request. It might potentially break code too,
e.g. this currently works:
-----
class D
{
}
class C : D
{
static class D
{
}
}
-----
With the enhancement this would have to become a conflict, although the
workaround would be easy: one could use 'class C : .D' (dot expression) for the
global class and 'class C : D' for the nested one. But I'm not fond of such
lookup rules where something in an inner scope ends up conflicting with an
expression in an outer scope.
Well I don't think I've ever tried to use either of these samples so I don't
have a strong opinion either way.
--
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