[Issue 1048] the type matching of static initialization

torhu fake at address.dude
Sat Mar 10 08:56:31 PST 2007


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1048
> 
> 
> 
> 
> 
> ------- Comment #2 from wstring at gmail.com  2007-03-10 08:51 -------
> It cannot works:
> 
> void main(){
> ubyte a[3] = [2, 3 ,4];
> }

That's not static initialization.  It needs to be at the module level 
for that, or be declared as 'static ubyte a[3]'.


More information about the Digitalmars-d-bugs mailing list