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
so it seems like what is happening is the compiler sees the line unexpectedVariableAssignment(DisplayStyle.Flex) and sees that LineStyle and DisplayStyle are both StylePropertyEnums, so it chooses StylePropertyEnum as the generic type to satisfy invoking the variable.
Simple example code to demonstrate the problem (here, setting a
LineStyle
variable with aDisplayStyle
value):Expected: The line
unexpectedVariableAssignment(DisplayStyle.Flex)
should not compileActual: The code compiles and runs fine.
The text was updated successfully, but these errors were encountered: