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
Since .underscore is used to create an Enum value's method name, it's possible to collide with existing method names. I'm not sure what the "right" solution is, but should the compiler raise an error (or warning) for situations like those in the following examples?
enumMyEnumIsA# or `RespondsTo` or `As`endpMyEnum::IsA.is_a? # => Syntax error in eval:5: expecting token 'CONST', not 'NEWLINE'# (compiler level .is_a? wins and so is syntactically incorrect)
Since
.underscore
is used to create an Enum value's method name, it's possible to collide with existing method names. I'm not sure what the "right" solution is, but should the compiler raise an error (or warning) for situations like those in the following examples?Example 1 - https://carc.in/#/r/5il3
Example 2 - https://carc.in/#/r/5il6
Example 3 - https://carc.in/#/r/5il4
The text was updated successfully, but these errors were encountered: