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

Commit4daa24d

Browse files
forkiKevinRansom
authored andcommitted
Don't use length when isNil is enough (#2990)
1 parent6300f06 commit4daa24d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/absil/il.fs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,16 +561,16 @@ type ILTypeRef =
561561
memberx.ApproxId= x.hashCode
562562

563563
memberx.AsBoxedType(tspec:ILTypeSpec)=
564-
match List.length tspec.tspecInstwith
565-
|0->
564+
if isNil tspec.tspecInstthen
566565
letv= x.asBoxedType
567566
match box vwith
568567
|null->
569568
letr= ILType.Boxed tspec
570569
x.asBoxedType<- r
571570
r
572571
|_-> v
573-
|_-> ILType.Boxed tspec
572+
else
573+
ILType.Boxed tspec
574574

575575
overridex.GetHashCode()= x.hashCode
576576
overridex.Equals(yobj)=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp