提交 ad15fcba 编写于 作者: 杜庆泉's avatar 杜庆泉

遵循建议,还原部分警告写法

上级 ab639b9b
......@@ -184,16 +184,11 @@ export function testArray(): Result {
x : number
y : number
}
// #ifdef WEB
const s = JSON.parse<P[]>(JSON.stringify([{ x: 0, y: 0 }])) as P[]
s[0].x += 0;
const clearList = s.map((v : P, _, a) : number => v.x)
expect(clearList.includes(0)).toEqual(true);
// #endif
// #ifdef APP-ANDROID
// #ifndef APP-IOS
const s = JSON.parse<P[]>(JSON.stringify([{ x: 0, y: 0 }])) as P[]
s[0].x += 0;
const clearList = s.map((v : P, _, _) : number => v.x)
const clearList = s.map((v : P, _, _a) : number => v.x)
expect(clearList.includes(0)).toEqual(true);
// #endif
// #ifdef APP-IOS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册