@@ -966,30 +966,33 @@ type TcGlobals(
966966 let mkDebuggerTypeProxyAttribute ( ty : ILType ) = mkILCustomAttribute ( findSysILTypeRef tname_ DebuggerTypeProxyAttribute, [ ilg.typ_ Type], [ ILAttribElem.TypeRef ( Some ty.TypeRef)], [])
967967
968968 let betterTyconEntries =
969- [| " Int32" , v_ int_ tcr
970- " IntPtr" , v_ nativeint_ tcr
971- " UIntPtr" , v_ unativeint_ tcr
972- " Int16" , v_ int16_ tcr
973- " Int64" , v_ int64_ tcr
974- " UInt16" , v_ uint16_ tcr
975- " UInt32" , v_ uint32_ tcr
976- " UInt64" , v_ uint64_ tcr
977- " SByte" , v_ sbyte_ tcr
978- " Decimal" , v_ decimal_ tcr
979- " Byte" , v_ byte_ tcr
980- " Boolean" , v_ bool_ tcr
981- " String" , v_ string_ tcr
982- " Object" , v_ obj_ tcr
983- " Exception" , v_ exn_ tcr
984- " Char" , v_ char_ tcr
985- " Double" , v_ float_ tcr
986- " Single" , v_ float32_ tcr |]
987- |> Array.map ( fun ( nm , tcr ) ->
969+ [| yield sys, " Int32" , v_ int_ tcr
970+ yield sys, " IntPtr" , v_ nativeint_ tcr
971+ yield sys, " UIntPtr" , v_ unativeint_ tcr
972+ yield sys, " Int16" , v_ int16_ tcr
973+ yield sys, " Int64" , v_ int64_ tcr
974+ yield sys, " UInt16" , v_ uint16_ tcr
975+ yield sys, " UInt32" , v_ uint32_ tcr
976+ yield sys, " UInt64" , v_ uint64_ tcr
977+ yield sys, " SByte" , v_ sbyte_ tcr
978+ yield sys, " Decimal" , v_ decimal_ tcr
979+ yield sys, " Byte" , v_ byte_ tcr
980+ yield sys, " Boolean" , v_ bool_ tcr
981+ yield sys, " String" , v_ string_ tcr
982+ yield sys, " Object" , v_ obj_ tcr
983+ yield sys, " Exception" , v_ exn_ tcr
984+ yield sys, " Char" , v_ char_ tcr
985+ yield sys, " Double" , v_ float_ tcr
986+ yield sys, " Single" , v_ float32_ tcr
987+ if not compilingFSharpCore then
988+ yield sysGenerics, " IEnumerable`1" , v_ seq_ tcr |]
989+ |> Array.map ( fun ( qualifier , nm , tcr ) ->
988990 let ty = mkNonGenericTy tcr
989- nm, findSysTyconRef sys nm, ( fun _ nullness ->
990- match nullness with
991- | Nullness.Known NullnessInfo.WithoutNull -> ty
992- | _ -> mkNonGenericTyWithNullness tcr nullness))
991+ nm, findSysTyconRef qualifier nm, ( fun typars nullness ->
992+ match typars, nullness with
993+ | [], Nullness.Known NullnessInfo.WithoutNull -> ty
994+ | [], nullness -> mkNonGenericTyWithNullness tcr nullness
995+ | _ -> TType_ app( tcr, typars, nullness)))
993996
994997 let decompileTyconEntries =
995998 [|
0 commit comments