Skip to content

Commit 8c6ca65

Browse files
committed
JS: Add test showing missing flow
1 parent 870521b commit 8c6ca65

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as dummy from 'dummy';
2+
3+
function blah(obj) {
4+
obj.prop = obj.prop + "x";
5+
return obj.prop;
6+
}
7+
8+
function test() {
9+
sink(blah(source())); // NOT OK
10+
11+
blah(); // ensure more than one call site exists
12+
}

0 commit comments

Comments
 (0)