Skip to content

implicitAny doesn't work for 2.5.2 #19416

Closed
@michael8090

Description

@michael8090

TypeScript Version: 2.5.2

Code

const a = [];

Expected behavior:
TS should show an error message when noImplicitAny is on;
Actual behavior:
No error message is shown, and a has a type of "any[]", as below:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions