-
Notifications
You must be signed in to change notification settings - Fork 30.4k
ternary expression behaviour differs in debug mode from profile mode or release mode #98967
Copy link
Copy link
Closed
Closed
Copy link
Labels
a: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appc: regressionIt was better in the past than it is nowIt was better in the past than it is nowdependency: dartDart team may need to help usDart team may need to help usfound in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.11Found to occur in 2.11Found to occur in 2.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Metadata
Metadata
Assignees
Labels
a: releaseChallenges faced when attempting to productionize an appChallenges faced when attempting to productionize an appc: regressionIt was better in the past than it is nowIt was better in the past than it is nowdependency: dartDart team may need to help usDart team may need to help usfound in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.11Found to occur in 2.11Found to occur in 2.11has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Bug Description
the value of the '_selectedIndex != null ? _selectedIndex == index : false' is same with '_selectedIndex==index' in debug mode but different in profile or release mode.
Flutter Version
Steps to Reproduce
the expr
_selectedIndex != null ? _selectedIndex == index : falseis equal to_selectedIndex==indexthe expr
_selectedIndex != null ? _selectedIndex == index : falseis always falseCode sample