Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d0c3223

Browse files
committedJun 17, 2017
Test for babylon regression
1 parent 945f00a commit d0c3223

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎test/non-regression.js

+15
Original file line numberDiff line numberDiff line change
@@ -1771,4 +1771,19 @@ describe("verify", () => {
17711771
);
17721772
});
17731773
});
1774+
1775+
it("flow types on class method should be visited correctly", () => {
1776+
verifyAndAssertMessages(
1777+
unpad(`
1778+
import type NodeType from 'foo';
1779+
class NodeUtils {
1780+
finishNodeAt<T : NodeType>(node: T): T { return node; }
1781+
}
1782+
1783+
new NodeUtils();
1784+
`),
1785+
{ "no-unused-vars": 1 },
1786+
[]
1787+
);
1788+
});
17741789
});

0 commit comments

Comments
 (0)
Please sign in to comment.