I try A Swift Tour but Silver doesn’t like it.
This file taken from there: Contents.swift.txt (4.2 KB)
“let widthLabel = label + String(width)” is the problematic line.
On .net windows console: System.IO.FileLoadException: 'Could not load file or assembly ‘Echoes, Version=9.3.103.2211, Culture=neutral, PublicKeyToken=3df3cad1b7aa5098’ or one of its dependencies.
On island windows console: (E506) Variable “label” must be initialized before it can be used.
I use 2347, maybe mine too old?
I use .net 4.6.2.
New project silver .net windows console.
Replace program.swift contents with the file that uploaded, click start (button with green triangle).
For Island, the steps are same.
(E506) Variable “label” must be initialized before it can be used
(E506) Variable “width” must be initialized before it can be used
BTW island compilation time is noticeable longer, is this expected?
Also, that seems to be a very old version of Echoes.dll (9.3.103.2211), not matching the rest (10.0.0.2347). Can you check your system for old copies of Echoes.dll and maybe delete them?
I just fixed that. (should be fixed in the next build)
the generics issue is related to the function pointers. (A) -> (B) points to the Func1…Func7 types we have in Cooper.jar (or Action when something doesn’t return a type).
So (int) -> (int) becomes Func2<Int, Int>, problem is that Java doesn’t really allow that,it only allows reference types so the compiler turns them into nullable Integers. anyway I’m looking for a solution for that one.