add additional react ThisExpression conversion test

This commit is contained in:
Sebastian McKenzie
2015-01-30 11:05:16 +11:00
parent 7bb3cfd932
commit 47a45f3731
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
var foo = function () {
return () => <this />;
};
var bar = function () {
return () => <this.foo />;
};

View File

@@ -4,3 +4,10 @@ var foo = function () {
return React.createElement(_this, null);
};
};
var bar = function () {
var _this = this;
return function () {
return React.createElement(_this.foo, null);
};
};