Closed
Description
TypeScript Version: 3.0.0-dev.20180628
Search Terms: argument, parameter, arguments, list, any, untyped
Code
function sumVariadic() {
return Array
.from(arguments)
.reduce((total, n) => total + n, 0) // any
}
Expected behavior: TSC should complain that total
, n
, and sumVariadic
's return type are implicitly any
when noImplicitAny=true
.
Actual behavior: total
, n
, and sumVariadic
's return type are any
. No errors are thrown.
Related Issues: