I think this one is about tink_hxx, but I am not sure
import coconut.Ui.*;
import coconut.ui.*;
import coconut.data.*;
class Main {
static function main() {
hxx('<Dropdown values=${List.fromArray([{name:'a'}, {name:'b'}])} />');
}
}
class Dropdown extends View<{values:List<Value>}> {
function render() '<div/>';
}
typedef Value = {
var name(default, never):String;
}
Error:
/Users/kevin/Codes/test/src/Main.hx:9: characters 67-68 : Unexpected b
If main() is
static function main() {
var list = List.fromArray([{name:'a'}, {name:'b'}]);
hxx('<Dropdown values=${List.fromArray([{name:'a'}, {name:'b'}])} />');
}
I think this one is about tink_hxx, but I am not sure
Error:
/Users/kevin/Codes/test/src/Main.hx:9: characters 67-68 : Unexpected b
If
main()
isError becomes:
It compiles if the List is stored in a variable before
hxx()
;