assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

Support break and continue labels

Open MaxGraey opened this issue 7 years ago • 2 comments
trafficstars

This valid typescript code:

export function escape(): i32 {
  var t: i32;
  jail: {
    t = 0xDEADFA11;
    break jail;
  };
  return t;
}

MaxGraey avatar Nov 14 '18 18:11 MaxGraey

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.

ghost avatar Jan 24 '21 04:01 ghost

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

Pyrolistical avatar Jun 13 '22 05:06 Pyrolistical