Enum hashCode is different when hot reloading #56248
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P2
A bug or feature request we're likely to work on
triaged
Issue has been triaged by sub team
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
vm-hot-reload
Hello,
I have encountered an issue when hot reloading in Flutter and using a simple equality check with an enum and a variable.
It seems that the hashCode of the enum value itself is different somehow.
I didn't have success replicating it outside of my project unfortunately.
This is the enum code:
When printing to console these lines:
The output is:
After hard reload, the output is:
Dart version: 3.4.3
Env: MacOS 13.6
Device: Android 14
The text was updated successfully, but these errors were encountered: