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
interfaceFoo{a}letx=Foo// "'Foo' only refers to a type but it used as a value"lety=any// 'any' is not found
Expected: error messages are the same.
Actual: let y = any has the generic 'any'-not-found message.
I'm not sure how often people say new string[], but our tests definitely say it a lot!
The text was updated successfully, but these errors were encountered:
sandersn
changed the title
"{0} only refers to a type but is used a value" doesn't work for primitive types
"{0} only refers to a type but is used as a value" doesn't work for primitive types
May 3, 2017
Previously, you would get the generic message when writing incorrect
code like `let y = number`. "Cannot find name 'number'". Now the message
says "'number' is a type but is used a value here."
Fixes#15565
Expected: error messages are the same.
Actual:
let y = any
has the generic 'any'-not-found message.I'm not sure how often people say
new string[]
, but our tests definitely say it a lot!The text was updated successfully, but these errors were encountered: