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.
Here is a simpler example that illustrates the problem