diff --git a/test.js b/test.js index 16d25c8..4e7b7fd 100644 --- a/test.js +++ b/test.js @@ -1 +1,8 @@ +doSomething(); +export function test1(x) { + return x.prop; +} + null.prop; + +const prop = doSomething(); diff --git a/test3.js b/test3.js new file mode 100644 index 0000000..105c8bc --- /dev/null +++ b/test3.js @@ -0,0 +1,3 @@ +function test3() { + return; +} diff --git a/test_pr.js b/test_pr.js new file mode 100644 index 0000000..4297809 --- /dev/null +++ b/test_pr.js @@ -0,0 +1,3 @@ +import { test1 } from './test'; + +test1(null); diff --git a/test_pr4.js b/test_pr4.js new file mode 100644 index 0000000..64817be --- /dev/null +++ b/test_pr4.js @@ -0,0 +1,13 @@ +doSomething(); + +import bar from 'bar'; +import foo from 'foo'; +import foo2 from 'foo2'; + +function test() { + return null.prop; +} + +function test2() { + return null.prop2; +}