mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
20 lines
252 B
JavaScript
20 lines
252 B
JavaScript
// @flow
|
|
|
|
// Sanity check:
|
|
// - invalid calls at predicate positions
|
|
|
|
declare function pred<T>(x: T): boolean;
|
|
|
|
function foo(s: Array<string>): string {
|
|
|
|
if ((1)(s)) {
|
|
return "1";
|
|
}
|
|
|
|
if ((pred + 1)("s")) {
|
|
return "1";
|
|
}
|
|
|
|
return "1"
|
|
}
|