CountBleck

Results 75 comments of CountBleck

Maybe something as simple as a space after the `@` or a triple slash could indicate "commented" decorators.

> I wonder why do we need to split lots of test. Yeah, checking diagnostics after initialize is VERY BAD.

> Cannot detect this case That's not good at all.

I'm not sure if AS supports `typeof` yet.

`typeof x` when used as a type is parsed separately and differently from `typeof x` when used as an expression. For instance, `typeof x()`, `typeof (x)`, `typeof x[a ? b...

The error you reported indicates the parser expected code like [this](https://www.assemblyscript.org/editor#IyFvcHRpbWl6ZT1zcGVlZCZydW50aW1lPWluY3JlbWVudGFsCmxldCB4ID0gMQpsZXQgeSA9ICJoaSIKbGV0IHogPSB5PHR5cGVvZiB4PigpOmkzMj0+MDsKIyFodG1sCg==), which is seen as `(y < typeof x) > ((): i32 => 0)`, without the extra parentheses. Edit: @HerrCai0907...

> It is hard to distinguish generic and lessThan and greaterThan operator without semantic analysis. Semantic analysis isn't necessary. TypeScript eagerly parses generics (which makes sense; practically no one would...

Can you provide more info about the code itself? Also, what if you add a `store(3, load(3));` to some parts of the code?

Just see if that fixes the issue.

@HerrCai0907 He has tried both `heap.alloc` and `memory.data`. Technically `StaticArray` works, since it directly points to the data (like `ArrayBuffer` and `String`).