Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7aa3d99

Browse files
author
dotnet-automerge-bot
authored
Merge pull requestdotnet#5769 from Microsoft/merges/master-to-dev16.0
Merge master to dev16.0
2 parentse801b65 +e42cea2 commit7aa3d99

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

‎src/fsharp/IlxGen.fs‎

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5121,25 +5121,32 @@ and ComputeFlagFixupsForMemberBinding cenv (v:Val,memberInfo:ValMemberInfo) =
51215121
letotcref= tcrefOfAppTy cenv.g oty
51225122
lettcref= v.MemberApparentEntity
51235123

5124-
letuseMethodImpl=
5125-
// REVIEW: it would be good to get rid of this special casing of Compare and GetHashCode during code generation
5126-
letisCompare=
5127-
(Option.isSome tcref.GeneratedCompareToValues&& typeEquiv cenv.g oty cenv.g.mk_IComparable_ty)||
5128-
(Option.isSome tcref.GeneratedCompareToValues&& tyconRefEq cenv.g cenv.g.system_GenericIComparable_tcref otcref)
5129-
5130-
letisGenericEquals=
5131-
(Option.isSome tcref.GeneratedHashAndEqualsWithComparerValues&& tyconRefEq cenv.g cenv.g.system_GenericIEquatable_tcref otcref)
5132-
5133-
letisStructural=
5134-
(Option.isSome tcref.GeneratedCompareToWithComparerValues&& typeEquiv cenv.g oty cenv.g.mk_IStructuralComparable_ty)||
5135-
(Option.isSome tcref.GeneratedHashAndEqualsWithComparerValues&& typeEquiv cenv.g oty cenv.g.mk_IStructuralEquatable_ty)
5136-
isInterfaceTy cenv.g oty&&not isCompare&&not isStructural&&not isGenericEquals
5124+
letuseMethodImpl=
5125+
// REVIEW: it would be good to get rid of this special casing of Compare and GetHashCode during code generation
5126+
isInterfaceTy cenv.g oty&&
5127+
(letisCompare=
5128+
Option.isSome tcref.GeneratedCompareToValues&&
5129+
(typeEquiv cenv.g oty cenv.g.mk_IComparable_ty||
5130+
tyconRefEq cenv.g cenv.g.system_GenericIComparable_tcref otcref)
5131+
5132+
not isCompare)&&
5133+
5134+
(letisGenericEquals=
5135+
Option.isSome tcref.GeneratedHashAndEqualsWithComparerValues&& tyconRefEq cenv.g cenv.g.system_GenericIEquatable_tcref otcref
5136+
5137+
not isGenericEquals)&&
5138+
(letisStructural=
5139+
(Option.isSome tcref.GeneratedCompareToWithComparerValues&& typeEquiv cenv.g oty cenv.g.mk_IStructuralComparable_ty)||
5140+
(Option.isSome tcref.GeneratedHashAndEqualsWithComparerValues&& typeEquiv cenv.g oty cenv.g.mk_IStructuralEquatable_ty)
51375141

5142+
not isStructural)
51385143

51395144
letnameOfOverridingMethod= GenNameOfOverridingMethod cenv(useMethodImpl,slotsig)
51405145

5141-
(if useMethodImplthen fixupMethodImplFlags>> renameMethodDef nameOfOverridingMethod
5142-
else fixupVirtualSlotFlags>> renameMethodDef nameOfOverridingMethod))
5146+
if useMethodImplthen
5147+
fixupMethodImplFlags>> renameMethodDef nameOfOverridingMethod
5148+
else
5149+
fixupVirtualSlotFlags>> renameMethodDef nameOfOverridingMethod)
51435150

51445151
andComputeMethodImplAttribs cenv(_v:Val)attrs=
51455152
letimplflags=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp