Skip to content

incorrect name mappings: last name index is used for unrelated entries #5224

@develar

Description

@develar

IntelliJ IDEA supports name mappings and currently typescript compiler produces incorrect name mappings (https://youtrack.jetbrains.com/issue/WEB-17717).

Typescript code:

class Foo {
    public b = 3;
    bar(param1){
        var a = 5;
        return a;
    }
}

new Foo().bar(1);

Debug output: https://gist.github.com/develar/598a984f27bb92526094

Project to get debug output: https://dl.dropboxusercontent.com/u/43511007/s/ts-name-mappings-bug.zip

IDEA sourcemap visualiser: screen shot 2015-10-12 at 14 56 21

Metadata

Metadata

Assignees

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