Skip to content

Commit 687fb9b

Browse files
abelbraaksmabaronfel
authored andcommitted
Move not function down and remove inline IL
1 parent 4f669da commit 687fb9b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/fsharp/FSharp.Core/prim-types.fs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3791,10 +3791,6 @@ namespace Microsoft.FSharp.Core
37913791
[<CompiledName("FailurePattern")>]
37923792
let (|Failure|_|) (error: exn) = if error.GetType().Equals(typeof<System.Exception>) then Some error.Message else None
37933793

3794-
[<CompiledName("Not")>]
3795-
let inline not (value: bool) = (# "ceq" value false : bool #)
3796-
3797-
37983794
let inline (<) x y = GenericLessThan x y
37993795
let inline (>) x y = GenericGreaterThan x y
38003796
let inline (>=) x y = GenericGreaterOrEqual x y
@@ -4743,6 +4739,9 @@ namespace Microsoft.FSharp.Core
47434739
[<CompiledName("Identity")>]
47444740
let id x = x
47454741

4742+
[<CompiledName("Not")>]
4743+
let inline not (value: bool) = match value with true -> false | _ -> true
4744+
47464745
// std* are TypeFunctions with the effect of reading the property on instantiation.
47474746
// So, direct uses of stdout should capture the current System.Console.Out at that point.
47484747
[<CompiledName("ConsoleIn")>]

0 commit comments

Comments
 (0)