You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @noImplicitAny: truefunctionf(l: never,x: any){varx=l[0]// should be implicit any error here, but 'non-matching redeclaration type' insteadx.length// and no error here, but 'length' not found on 'never' instead}
Expected behavior:
With noImplicitAny on, you should get a noImplicitAny error and x: any. With it off, you should just get x: any.
Actual behavior: x: never and you get an error on the next line that 'length' does not exist on type 'never'.
On master, but not 3.1 as of 2018/07/17
The text was updated successfully, but these errors were encountered:
Expected behavior:
With noImplicitAny on, you should get a noImplicitAny error and
x: any
. With it off, you should just getx: any
.Actual behavior:
x: never
and you get an error on the next line that 'length' does not exist on type 'never'.On master, but not 3.1 as of 2018/07/17
The text was updated successfully, but these errors were encountered: