Skip to content

"Subsequent variable declarations must have the same type" should provide location of other variable #19339

Closed

Description

TypeScript Version: 2.6.0-dev.20171019

Code

Install @types/node.

declare var process: any;

Expected behavior:

Error at declare var process: any;, or the other error should mention it.

Actual behavior:

node_modules/@types/node/index.d.ts(75,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'process' must be of type 'any', but here has type 'Process'.

Activity

  1. ghost closed this as completedin #19356on Oct 20, 2017
  2. added
    Fixed
    on Oct 23, 2017
  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

    BugFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions