Skip to content

error TS2323: Cannot redeclare exported variable #6043

Closed
@falsandtru

Description

@falsandtru

A following code was compiled with no error on TS1.7 but latest nightly build is not. Is this breaking changes?

declare module "a" {
  export default 0
  export const a;
  export type a = typeof a;
}
$ node_modules/.bin/tsc --version
Version 1.8.0-dev.20151210
$ node_modules/.bin/tsc a.d.ts
a.d.ts(3,16): error TS2323: Cannot redeclare exported variable 'a'.
a.d.ts(4,3): error TS2323: Cannot redeclare exported variable 'a'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions