www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - auto - should this work?

reply Ivan Senji <ivan.senji_REMOVE_ _THIS__gmail.com> writes:
static auto points = 
[[0,0],[1,0],[0,1],[1,1],[-1,-1],[-1,0],[0,-1],[-2,0],[2,0],[0,2]] ;

Error: cannot infer type from initializer
Error: cannot use array to initialize int
Nov 28 2005
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ivan Senji schrieb am 2005-11-28:
 static auto points = 
 [[0,0],[1,0],[0,1],[1,1],[-1,-1],[-1,0],[0,-1],[-2,0],[2,0],[0,2]] ;

 Error: cannot infer type from initializer
 Error: cannot use array to initialize int

Added to DStress as http://dstress.kuehne.cn/run/a/auto_18_C.d http://dstress.kuehne.cn/run/a/auto_18_B.d http://dstress.kuehne.cn/run/a/auto_18_A.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFEccAk3w+/yD4P9tIRAiSvAJsHzJo1ApPyKFAFDoF/MwNGRZAAZwCgnTWf Bl3fIU3JA1T05cB3+oZARkY= =IoyZ -----END PGP SIGNATURE-----
May 22 2006