Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio f的无功扩张#_Visual Studio_F#_System.reactive - Fatal编程技术网

Visual studio f的无功扩张#

Visual studio f的无功扩张#,visual-studio,f#,system.reactive,Visual Studio,F#,System.reactive,我正在尝试从fsharp调用rx 2.0 frameworok。 我看到有一个项目试图将rx2.0映射到FSharp 当我尝试使用它时,会发生一些非常奇怪的事情: IDE中显示了一个错误,可以在以下代码中重现该错误: module FSharp.Reactive2 open System open System.Reactive open System.Reactive.Linq open System.Reactive.Concurrency type IObservable<'a

我正在尝试从fsharp调用rx 2.0 frameworok。
我看到有一个项目试图将rx2.0映射到FSharp

当我尝试使用它时,会发生一些非常奇怪的事情:

  • IDE中显示了一个错误,可以在以下代码中重现该错误:

    module FSharp.Reactive2
    
    open System
    open System.Reactive
    open System.Reactive.Linq
    open System.Reactive.Concurrency
    
    type IObservable<'a> with
      // Subscribes to the Observable with just a next-function.
      member this.Subscribe(onNext:'a -> unit) =
        let toto = (Action<_> onNext)
        this.Subscribe(toto)
    
    模块FSharp.Reactive2
    开放系统
    开放系统,反应式
    开放系统.Reactive.Linq
    开放系统.反应性.并发性
    类型(可观测单元)=
    让toto=(操作onNext)
    这个。订阅(toto)
    
    内部错误:列表的长度不同。参数名称
    xs2

  • 但当我编译它时,它会生成一个dll,错误就会消失。如果再次修改代码文件,错误将再次出现

这在使用System.Reactive dll的其他项目中发生。

我做错什么了吗//有什么办法处理吗//这是一个bug吗?

内部错误表示编译器bug。尝试向发送电子邮件fsbugs@microsoft.com.

是的,我们已经知道了这个问题,它将在下一个版本中得到解决。我已经——并且需要更多——使用这个重载,但是当我上次运行它时,测试通过了。