Skip to content

Better error messages for ambient accessors. #139

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
declare class A {
    get length() : number;
}

Giving the error '{' expected.

As @JsonFreeman said

This is a bad error because fixing it (by putting the braces) will just lead you to another error (no accessors in ambient context)

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions