JS: Add test showing missing flow

This commit is contained in:
Asger Feldthaus
2022-03-17 16:01:51 +01:00
parent 870521bd1e
commit 8c6ca6582e

View File

@@ -0,0 +1,12 @@
import * as dummy from 'dummy';
function blah(obj) {
obj.prop = obj.prop + "x";
return obj.prop;
}
function test() {
sink(blah(source())); // NOT OK
blah(); // ensure more than one call site exists
}