register named method id as a reference to avoid collisions - fixes #1664

This commit is contained in:
Sebastian McKenzie
2015-06-01 21:53:34 +01:00
parent 8919fc22b1
commit 80a7f13460
5 changed files with 29 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
import { a } from "./a";
class Foo {
_a() {
a();
}
}

View File

@@ -0,0 +1,17 @@
"use strict";
var _a2 = require("./a");
var Foo = (function () {
function Foo() {
babelHelpers.classCallCheck(this, Foo);
}
babelHelpers.createClass(Foo, [{
key: "_a",
value: function _a() {
(0, _a2.a)();
}
}]);
return Foo;
})();