diff --git a/src/fsharp/FSharp.Core/prim-types.fs b/src/fsharp/FSharp.Core/prim-types.fs index bc7ee7dd9d4..24e6f71c967 100644 --- a/src/fsharp/FSharp.Core/prim-types.fs +++ b/src/fsharp/FSharp.Core/prim-types.fs @@ -656,17 +656,17 @@ namespace Microsoft.FSharp.Core module LanguagePrimitives = - [] - type (* internal *) ErrorStrings = + + module (* internal *) ErrorStrings = // inline functions cannot call GetString, so we must make these bits public - static member AddressOpNotFirstClassString with get () = SR.GetString(SR.addressOpNotFirstClass) - static member NoNegateMinValueString with get () = SR.GetString(SR.noNegateMinValue) + let AddressOpNotFirstClassString = SR.GetString(SR.addressOpNotFirstClass) + let NoNegateMinValueString = SR.GetString(SR.noNegateMinValue) // needs to be public to be visible from inline function 'average' and others - static member InputSequenceEmptyString with get () = SR.GetString(SR.inputSequenceEmpty) + let InputSequenceEmptyString = SR.GetString(SR.inputSequenceEmpty) // needs to be public to be visible from inline function 'average' and others - static member InputArrayEmptyString with get () = SR.GetString(SR.arrayWasEmpty) + let InputArrayEmptyString = SR.GetString(SR.arrayWasEmpty) // needs to be public to be visible from inline function 'average' and others - static member InputMustBeNonNegativeString with get () = SR.GetString(SR.inputMustBeNonNegative) + let InputMustBeNonNegativeString = SR.GetString(SR.inputMustBeNonNegative) [] // nested module OK module IntrinsicOperators = diff --git a/src/fsharp/FSharp.Core/prim-types.fsi b/src/fsharp/FSharp.Core/prim-types.fsi index 094ebcf6f3b..9a72dcb4dec 100644 --- a/src/fsharp/FSharp.Core/prim-types.fsi +++ b/src/fsharp/FSharp.Core/prim-types.fsi @@ -1015,23 +1015,22 @@ namespace Microsoft.FSharp.Core val inline DivideByInt< ^T > : x:^T -> y:int -> ^T when ^T : (static member DivideByInt : ^T * int -> ^T) /// For compiler use only - [] - type (* internal *) ErrorStrings = + module (* internal *) ErrorStrings = [] - static member InputSequenceEmptyString : string with get + val InputSequenceEmptyString : string [] - static member InputArrayEmptyString : string with get + val InputArrayEmptyString : string [] - static member AddressOpNotFirstClassString : string with get + val AddressOpNotFirstClassString : string [] - static member NoNegateMinValueString : string with get + val NoNegateMinValueString : string [] - static member InputMustBeNonNegativeString : string with get + val InputMustBeNonNegativeString : string //-------------------------------------------------------------------------