2

Closed

Intellisense on Enum return type should not give all enum values.

description

Hello,

I was playing around with Enums and noticed that when a function returns an enum type if you assign that result to a variable, you then get intellisense on that variable as though you could access all the enum values (when the result should be a number (that is one of the enum values)).

Expected: Intellisense should probably give the options that would show for a number

Actual: We seem to get intellisense for all of the enum values.

Image



Here is a simpler example that illustrates the problem

Image



Thoughts? Thanks.
Closed Apr 1 at 12:30 AM by RyanCavanaugh
The fix should be visible in the upcoming release. Thanks!

comments