**TypeScript Version:** 2.2.1 **Code** ```ts function isString(x: any) { return typeof x === 'string'; } ``` **Expected behavior:** Inferred type of foo is `function isString(x: any): boolean` **Actual behavior:** Inferred type should be `function isString(x: any): x is string`