-
Notifications
You must be signed in to change notification settings - Fork 854
Open
Labels
Area-Compiler-PatternMatchingpattern compilation, active patterns, performance, codegenpattern compilation, active patterns, performance, codegenBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Description
let mutable isDisposed = false
let d = { new System.IDisposable with
member x.Dispose() =
printfn $"{isDisposed}"
isDisposed <- true }
do
use a as b = d
()yields
False
True
val mutable isDisposed : bool = true
val d : System.IDisposable
val it : unit = ()
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-Compiler-PatternMatchingpattern compilation, active patterns, performance, codegenpattern compilation, active patterns, performance, codegenBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Type
Projects
Status
New