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
foo in the initializer of bar references the parameter foo of type string.
Use before declare error for foo.
Actual behavior:
foo in the initializer of bar references the outer variable declaration foo of type number.
No use before declare error.
Exception when running this code.
TypeScript Version: 3.1.0-dev.20180831
Search Terms:
Code
Expected behavior:
foo
in the initializer ofbar
references the parameterfoo
of typestring
.Use before declare error for
foo
.Actual behavior:
foo
in the initializer ofbar
references the outer variable declarationfoo
of typenumber
.No use before declare error.
Exception when running this code.
Related Issues:
introduced by #26317 while trying to fix #22769
#26762
/cc @Kingwl again
The text was updated successfully, but these errors were encountered: