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
{{ message }}
Repository navigation
Suggest Did you mean 'typeof Foo' when using value Foo as a type #28975
changed the title [-]Suggest `Did you mean 'typeof Foo'` when using value Foo as a type argument[/-][+]Suggest `Did you mean 'typeof Foo'` when using value Foo as a type[/+]on Dec 12, 2018
Andrew Casey (@amcasey) Should this issue be closed now as #37359 is merged? Looks like #32543 would have auto-closed this ticket but it was abandoned in favor of #37359.
Activity
[-]Suggest `Did you mean 'typeof Foo'` when using value Foo as a type argument[/-][+]Suggest `Did you mean 'typeof Foo'` when using value Foo as a type[/+]DanielRosenwasser commentedon Dec 12, 2018
I think this is more general than a type argument; probably as a type in general.
DanielRosenwasser commentedon Dec 12, 2018
Wesley Wigham (@weswigham) has some concerns regarding things like the following
s-lambert commentedon Dec 12, 2018
But that code doesn't seem to work, it won't compile because you do need
typeof Footo assign it to a type.mohsen1 commentedon Dec 12, 2018
Daniel Rosenwasser (@DanielRosenwasser) I think you meant
class Foo {}that works in both type and value spacescpplearner commentedon Dec 12, 2018
Perhaps it's more likely that
InstanceType<typeof Foo>is intended?suhailsinghbains commentedon Jan 5, 2019
Hi, Can I please work on this issue, I am new here
adds error message for using value as type argument
adds error message for using value as type argument
adds error message for using value as type argument
adds error message for using value as type argument
adds error message for using value as type argument
adds error message for using value as type argument (#37359)
jtbandes commentedon Apr 5, 2020
Andrew Casey (@amcasey) Should this issue be closed now as #37359 is merged? Looks like #32543 would have auto-closed this ticket but it was abandoned in favor of #37359.
weswigham commentedon Apr 5, 2020
Ah, yep.