mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
15 lines
243 B
JavaScript
15 lines
243 B
JavaScript
// @flow
|
|
|
|
let tests = [
|
|
// flows any to each param
|
|
function(x: any, y: $Tainted<string>) {
|
|
x(y); // error, taint ~> any
|
|
},
|
|
|
|
// calling `any` returns `any`
|
|
function(x: any, y: $Tainted<string>) {
|
|
let z = x();
|
|
z(y);
|
|
}
|
|
];
|