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
This is working as intended: The only getter which can be invoked as part of constant expression evaluation is length, and that is only allowed when the receiver is an instance of String (that's the actual value of the constant expression, not the static type).
In the following code snippet,
info.age
is a const value (the entireinfo
record is const). But the analyzer isn't happy with it.I get the following error about
case info.age
:Is this working as intended or a bug?
The text was updated successfully, but these errors were encountered: