JS: Add test

This commit is contained in:
Asger Feldthaus
2020-02-21 12:28:53 +00:00
parent f1ad0dafdc
commit 8da0584b12

View File

@@ -0,0 +1,14 @@
import * as dummy from 'dummy';
function f(x) {
if (isSafe(x)) {
sink(x);
sink(x.foo); // NOT OK
}
}
function g() {
f(source()); // OK
f(null);
f({foo: source()}); // NOT OK
}