Skip to content

implicitAny doesn't work for 2.5.2 #19416

Closed

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

Activity

  1. ahejlsberg commented on Oct 23, 2017

    @ahejlsberg
    Member

    This is working as intended. See #11432.

  2. michael8090 commented on Oct 23, 2017

    @michael8090
    Author

    Anders Hejlsberg (@ahejlsberg) You're right. Thanks

  3. locked and limited conversation to collaborators on Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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