If you use a Case or CaseZ in a Sequential, the value used for computation from expression is based on current value instead of the *edge sampled` value. This causes incorrect simulation behavior.
To Reproduce
Put Case in a Sequential where expression changes after the edge sampling, e.g. off another Sequential.
Expected behavior
expression uses the edge-sampled value
Actual behavior
No response
Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
Need to write tests for If, Case, and CaseZ that cover this.
Describe the bug
If you use a
Case
orCaseZ
in aSequential
, the value used for computation fromexpression
is based on current value instead of the *edge sampled` value. This causes incorrect simulation behavior.To Reproduce
Put
Case
in aSequential
whereexpression
changes after the edge sampling, e.g. off anotherSequential
.Expected behavior
expression
uses the edge-sampled valueActual behavior
No response
Additional: Dart SDK info
No response
Additional: pubspec.yaml
No response
Additional: Context
Need to write tests for
If
,Case
, andCaseZ
that cover this.