
In the following code this error is raised only on FileStream, FileMode and Append:
module M
open System
let xy = new System.IO.FileStream("", IO.FileMode.Append)
let z: System.IDisposable = null
let _ = { new System.IDisposable with
member this.Dispose(): unit =
raise (System.NotImplementedException()) }
I've examined the spans we return to Roslyn and they look good. No idea what's happening here.