function square(n) {
return n * n;
}
square("2");
-
flow
运行不报错? -
差一个注释
// @flow
function square(n) {
return n * n;
}
square("2");
只有加上 flow 的注释才会进行检查
function square(n) {
return n * n;
}
square("2");
flow
运行不报错?
差一个注释
// @flow
function square(n) {
return n * n;
}
square("2");
只有加上 flow 的注释才会进行检查