Array of associative array.
Auto cannot infer type from initializer
agustin.l.alvarez at hotmail.com
Mon Oct 28 14:27:46 PDT 2013
On Monday, 28 October 2013 at 21:26:41 UTC, Auto cannot infer
type from initializer wrote:
> public static CompilerTable = [
>
> ////////////////////////////////////////////////////////////
> /// \brief DMD
>
> ////////////////////////////////////////////////////////////
> ["-c" : "-c",
> "-debug" : "-debug",
> "-g" : "-g",
> "-gc" : "-gc",
> "-I" : "-I",
> "-inline" : "-inline",
> "-L" : "-L",
> "-lib" : "-lib",
> "-noboundscheck" : "-noboundscheck",
> "-O" : "-O",
> "-o-" : "-o-",
> "-odobjdir" : "-odobjdir",
> "-offilename" : "-offilename",
> "-profile" : "-profile",
> "-release" : "-release",
> "-unittest" : "-unittest",
> "-w" : "-w",
> "-wi" : "-wi"],
>
>
> ////////////////////////////////////////////////////////////
> /// \brief LDC
>
> ////////////////////////////////////////////////////////////
> ["-c" : "-c",
> "-debug" : "-debug",
> "-g" : "-g",
> "-gc" : "-gc",
> "-I" : "-I",
> "-inline" : "-inline",
> "-L" : "-L",
> "-lib" : "-lib",
> "-noboundscheck" : "-noboundscheck",
> "-O" : "-O",
> "-o-" : "-o-",
> "-odobjdir" : "-odobjdir",
> "-offilename" : "-offilename",
> "-profile" : "-profile",
> "-release" : "-release",
> "-unittest" : "-unittest",
> "-w" : "-w",
> "-wi" : "-wi"],
>
>
> ////////////////////////////////////////////////////////////
> /// \brief GDC
>
> ////////////////////////////////////////////////////////////
> ["-c" : "-c",
> "-debug" : "-fdebug",
> "-g" : "-g",
> "-gc" : "-g",
> "-I" : "-I",
> "-inline" : "-finline-functions",
> "-L" : "-Wl",
> "-lib" : "",
> "-noboundscheck" : "-noboundscheck",
> "-O" : "-O3",
> "-o-" : "-fsyntax-only",
> "-odobjdir" : "-od",
> "-offilename" : "-o",
> "-profile" : "-profile",
> "-release" : "-release",
> "-unittest" : "-unittest",
> "-w" : "-Wall",
> "-wi" : "-Wextra"]
> ];
>
> Error: variable org.ghrum.installer.option.CompilerTable cannot
> infer type from initializer
The declaration is public static auto CompilerTable = [ ... ]
More information about the Digitalmars-d-learn
mailing list