Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Test for babylon regression #493

Merged
merged 2 commits into from
Jun 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"babel-code-frame": "7.0.0-alpha.12",
"babel-traverse": "7.0.0-alpha.12",
"babel-types": "7.0.0-alpha.12",
"babylon": "7.0.0-beta.13"
"babylon": "7.0.0-beta.14"
},
"scripts": {
"test": "npm run lint && npm run test-only",
Expand Down
15 changes: 15 additions & 0 deletions test/non-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -1771,4 +1771,19 @@ describe("verify", () => {
);
});
});

it("flow types on class method should be visited correctly", () => {
verifyAndAssertMessages(
unpad(`
import type NodeType from 'foo';
class NodeUtils {
finishNodeAt<T : NodeType>(node: T): T { return node; }
}

new NodeUtils();
`),
{ "no-unused-vars": 1 },
[]
);
});
});
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ babylon@7.0.0-beta.12:
version "7.0.0-beta.12"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.12.tgz#f7b9c8a89ff7d6afb57b906d947a4237f9bf53f9"

babylon@7.0.0-beta.13:
version "7.0.0-beta.13"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.13.tgz#12425c1bfd9498be419021ed36b43fe4f0289c0a"
babylon@7.0.0-beta.14:
version "7.0.0-beta.14"
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d"

babylon@7.0.0-beta.8:
version "7.0.0-beta.8"
Expand Down