01alchemist / TurboScript

Super charged typed JavaScript dialect for parallel programming which compiles to WebAssembly
Apache License 2.0
494 stars 35 forks source link

Error in set accessor. #132

Closed MaxGraey closed 7 years ago

MaxGraey commented 7 years ago

code

class ArrayLike {
    _length: int32;
    get length(): int32 {
        return this._length;
    }
    set length(value: int32): void { // <-- Error
        this._length = value;
    }
}

export function test(): int32 {
    let f: ArrayLike = new ArrayLike();
    f.length = 1;
    return f.length;
}

Error

Cannot read property 'functionFirstArgument' of undefined

It seems TurboScript accessors not implemented yet?

MaxGraey commented 7 years ago

@dcodeIO This is TurboScript repo=) However Turboscript may not support accessors as well...

dcodeIO commented 7 years ago

oh no, not again - these issues look so similar and I subscribed to both repos :/. going to make sure that this won't happen again, sorry.

MaxGraey commented 7 years ago

Never say "never ever"=)

nidin commented 7 years ago

@dcodeIO No problem man :)

nidin commented 7 years ago

@MaxGraey I will check.

nidin commented 7 years ago

Just create an empty constructor