Skip to content

Invalid left hand side of assignment #2534

@basarat

Description

@basarat

Broken in the last six days. The following was and is okay:

var foo = function(){}
foo = function(){}

However as soon as you split the two into external modules
i.e. mod1.ts

export var foo = function(){}

mod2.ts

import mod1 = require('./mod1'); 
mod1.foo = function(){}; // Error : Invalid left hand side of assignment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions