https://d.puremagic.com/issues/show_bug.cgi?id=9040


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebbl...@gmail.com


--- Comment #9 from yebblies <yebbl...@gmail.com> 2013-11-22 23:47:07 EST ---
(In reply to comment #8)
> (In reply to comment #7)
> > test.d(5): Error: variable test.main.staticAnonInstance is mutable. Only 
> > const
> > or immutable class thread local variable are allowed, not test.BaseClass
> 
> Btw, can we do something about this diagnostic? It makes absolutely no sense 
> at
> all. Here's a mutable class thread-local variable:
> 
> auto a = new Class();
> 
> So the diagnostic makes no sense..

class Class {}
auto a = new Class();

testx.d(136): Error: variable testx.a is mutable. Only const or immutable class
thread local variable are allowed, not testx.Class

Why doesn't it make sense?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to