Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ public LocalStateAndContext<TValue, TContext> Current
public void Set(LocalKey key, TValue value)
{
current.LocalState.Set(key, value);
if (Exception != null)
// TODO: optimize this to not meet the whole value, but just modify one value without copying.
Exception.Value = Lattice.Meet(Exception.Value, current);
// TODO: optimize this to not meet the whole value, but just modify one value without copying.
Exception?.Value = Lattice.Meet(Exception.Value, current);
}

public TValue Get(LocalKey key) => current.LocalState.Get(key);
Expand Down