[Issue 3131] better type resolve

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 3 16:59:12 PDT 2009


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





--- Comment #4 from Jarrett Billingsley <jarrett.billingsley at gmail.com>  2009-07-03 16:59:11 PDT ---
(In reply to comment #2)

> Sometimes you can have
> 
> class ClassType1
> {
> }
> 
> class ClassType2
> {
>   ClassType1 ClassType1;
>   void func(ClassType1 t){} // this ClassType1 is clearly referring to the type
> of "ClassType1"
> }
> 
> And it's not hard to make this work. I see no reason to ignore this one.

I do.  It's stupid and pointless.  Just name your local variable _something
else_.

> You see, it's simple. I think it should be enhanced.

Just because it's simple doesn't mean it should be done.

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