Max Graey

Results 152 issues of Max Graey

```ts class Foo { static a = (): i32 => { // ERROR TS1110: Type expected. return 1; } b = (): i32 => { // ERROR TS1110: Type expected....

enhancement
compatibility

Previous one can't properly handle such edge cases: ```ts copysign(1.0, +0.0) -> +0.0 copysign(1.0, -0.0) -> -0.0 copysign(1.0, +NaN) -> NaN copysign(1.0, -NaN) -> NaN ``` Now, these cases don't...

Changes: + Canonicalize all enum identifiers from mixed (`UPPER`, `UPPER_SNAKE` and `TitleCase`) case to `TitleCase` only + Rename `statement` to `body` in all loop-related AST nodes in `ast.ts` + Rename...

enhancement
breaking change

For example, if we have custom `eq` we can always defina `ne(a, b)` as `!eq(a, b)` implicitly but only if operator marked as "private": ```ts class Vec2 { constructor(public x:...

enhancement

Similar proposal in TypeScript closed and delegated to tslint: https://github.com/microsoft/TypeScript/issues/2575 ```ts // Basically not possible in AS for now function ambiguousReturn() { return {} } // could be: // return;...

enhancement

**Motivation** Many intrinsics support `usize` / `isize` only partially (only i32 / u32 variants or i64 but not u64): ```ts builtin_v128_gt // supports only I64 part but not U64 builtin_v128_ge...

enhancement
compatibility

Simple example: ```ts class Vec2 { constructor(public x: f64 = 0, public y: f64 = 0) {} @operator("==") eq(other: Vec2): bool { return this.x == this.x && other.y == other.y;...

enhancement

Example: ```ts class Vec2 { constructor(public x: f64 = 0, public y: f64 = 0) {} @operator("==") eq(a: Vec2, b: Vec2): bool { // non-static but 2 args return a.x...

bug

Example ```ts class Foo { constructor(public boo: T) {} } new Foo("abc"); // ERROR TS2558: Expected 1 type arguments, but got 0. new Foo(123); // ERROR TS2558: Expected 1 type...

enhancement
compatibility

Add autocomplete via json scheme ### Implementation Plan + Create JSON scheme for `asconfig.son` based on [this file](https://github.com/AssemblyScript/assemblyscript/blob/main/cli/options.json), but preserve structure. + Add JSON scheme to [schemastore](https://www.schemastore.org/json/) in their [repository](https://github.com/schemastore/schemastore/)

enhancement
good first issue