浏览代码

Merge pull request #761 from danielcweber/PossiblyFixLatest

Fix Latest
Daniel C. Weber 7 年之前
父节点
当前提交
6af51d0d18
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Rx.NET/Source/src/System.Reactive/Linq/Observable/Latest.cs

+ 1 - 1
Rx.NET/Source/src/System.Reactive/Linq/Observable/Latest.cs

@@ -116,7 +116,7 @@ namespace System.Reactive.Linq.ObservableImpl
                 switch (kind)
                 {
                     case NotificationKind.OnNext:
-                        current = _value;
+                        current = value;
                         return true;
                     case NotificationKind.OnError:
                         error.Throw();