我正试图在Genie中列出一个列表并且它似乎不起作用.编译代码:
[indent=2]
init
var l = new list of string
Run Code Online (Sandbox Code Playgroud)
产生这些错误:
someone@someone-UBook:~/Documents$ valac helloworld.gs helloworld.gs:2.10-2.24: error: The name `Gee' does not exist in the context of `main'
var l = new list of int
^^^^^^^^^^^^^^^
helloworld.gs:2.8-2.24: error: var declaration not allowed with non-typed initializer
var l = new list of int
^^^^^^^^^^^^^^^^^
Compilation failed: 2 error(s), 0 warning(s)
Run Code Online (Sandbox Code Playgroud)
我已经安装了libgee2(通过sudo apt-get install libgee2),没有任何改变.有任何想法吗?