@@ -248,7 +248,7 @@ let toString com (ctx: Context) r (args: Expr list) =
248248 match head.Type with
249249 | String -> head
250250 | Char -> charToString head
251- | DeclaredType({ FullName = " System.Text.Rune " }, _) -> charToString head
251+ | DeclaredType({ FullName = Types.rune }, _) -> charToString head
252252 // | Builtin BclGuid when tail.IsEmpty -> head
253253 // | Builtin (BclGuid|BclTimeSpan|BclTimeOnly|BclDateOnly as bt) ->
254254 // Helper.LibCall(com, coreModFor bt, "toString", String, args)
@@ -3966,7 +3966,7 @@ let private replacedModules =
39663966 " System.Runtime.ExceptionServices.ExceptionDispatchInfo" , exceptionDispatchInfo
39673967 Types.char, chars
39683968 Types.string, strings
3969- " System.Text.Rune " , runes
3969+ Types.rune , runes
39703970 " Microsoft.FSharp.Core.StringModule" , stringModule
39713971 " System.FormattableString" , formattableString
39723972 " System.Runtime.CompilerServices.FormattableStringFactory" , formattableString
@@ -4051,10 +4051,10 @@ let private replacedModules =
40514051 Types.dateOnly, dateOnly
40524052 Types.timeOnly, timeOnly
40534053 Types.timespan, timeSpans
4054- " System.Timers.Timer " , timers
4054+ Types.timer , timers
40554055 " System.Environment" , systemEnv
40564056 " System.Globalization.CultureInfo" , globalization
4057- " System.Random " , random
4057+ Types.random , random
40584058 " System.Threading.CancellationToken" , cancels
40594059 " System.Threading.CancellationTokenSource" , cancels
40604060 " System.Threading.CancellationTokenRegistration" , disposables
@@ -4230,7 +4230,7 @@ let tryType typ =
42304230 | BclDateTimeOffset -> Some( Types.datetimeOffset, dates, [])
42314231 | BclDateOnly -> Some( Types.dateOnly, dateOnly, [])
42324232 | BclTimeOnly -> Some( Types.timeOnly, timeOnly, [])
4233- | BclTimer -> Some( " System.Timers.Timer " , timers, [])
4233+ | BclTimer -> Some( Types.timer , timers, [])
42344234 | BclTimeSpan -> Some( Types.timespan, timeSpans, [])
42354235 | BclHashSet genArg -> Some( Types.hashset, hashSets, [ genArg ])
42364236 | BclDictionary( key, value) -> Some( Types.dictionary, dictionaries, [ key; value ])
0 commit comments