如果上下文符号可以隐式解析为
any
类型,则报告包含形参、返回值、赋值表达式或类型不正确的函数调用。
declare var test: any; test.hasOwnProperty(true); //报告 'true'