assemblyscript
assemblyscript copied to clipboard
Support break and continue labels
trafficstars
This valid typescript code:
export function escape(): i32 {
var t: i32;
jail: {
t = 0xDEADFA11;
break jail;
};
return t;
}
Just tried out AS on the website, first thing I wrote used loops and labels. I thought that this was a bug, but it just isn't implemented yet; it'd be great to hear when AS supports labels.
I ran into this as well. Would be nice if there was an faq item that describe all the things in typescript that don't work yet