Skip to content

Import namespace exports should be immutable #2456

@JsonFreeman

Description

@JsonFreeman

We should not allow mutating a property of a namespace import:

// Library
export var x = 1;

// Consumer
import * as stuff from 'Library';
stuff.x = 0;

In ES6, these bindings are immutable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptES6Relates to the ES6 SpecFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions