Merge branch 'master' into range-analysis

This commit is contained in:
Max Schaefer
2018-11-30 09:36:40 +00:00
committed by GitHub
25 changed files with 235 additions and 1245 deletions

View File

@@ -7,6 +7,7 @@
| importWithoutPragma.jsx:1:1:1:27 | import ... react'; | Unused import h. |
| multi-imports.js:1:1:1:29 | import ... om 'x'; | Unused imports a, b, d. |
| multi-imports.js:2:1:2:42 | import ... om 'x'; | Unused imports alphabetically, ordered. |
| require-react-in-other-scope.js:2:9:2:13 | React | Unused variable React. |
| typeoftype.ts:9:7:9:7 | y | Unused variable y. |
| unusedShadowed.ts:1:1:1:26 | import ... where'; | Unused import T. |
| unusedShadowed.ts:2:1:2:31 | import ... where'; | Unused import object. |

View File

@@ -0,0 +1,2 @@
var React = x; // OK
(<e/>);

View File

@@ -0,0 +1,2 @@
var React = require("probably-react"); // OK
(<e/>);

View File

@@ -0,0 +1,2 @@
var { React } = { React: require("probably-react") }; // OK
(<e/>);

View File

@@ -0,0 +1,2 @@
var { React } = require("probably-react"); // OK
(<e/>);

View File

@@ -0,0 +1,6 @@
(function() {
var React = require("probably-react"); // NOT OK
})
(function() {
(<e/>);
})