Skip to content

Expected noImplicitAny error on 4.0 control flow analyzed static class properties #39226

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
// @noImplicitAny: true
class Square {
    static sideLength;
    constructor(sideLength: number) {
        this.sideLength = sideLength;
    }
}

Expected

Two errrors:

Member 'sideLength' implicitly has an 'any' type.
Property 'sideLength' is a static member of type 'Square'

Actual

One error

Property 'sideLength' is a static member of type 'Square'

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Control FlowThe issue relates to control flow analysisEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Help WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions