[Issue 3925] Missed escaping reference of a local variable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 25 15:41:37 PDT 2010


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



--- Comment #6 from bearophile_hugs at eml.cc 2010-10-25 15:40:48 PDT ---
(In reply to comment #5)
> ---
> class A{}
> 
> A foo(A a)
> {
>     return a;
> }
> 
> A bar()
> {
>     scope A a=new A();
>     return foo(a);
> }
> ---

The "scope" is deprecated, so I think yours isn't a valid error case, sorry :-(

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