Skip to content

Commit fb3c52b

Browse files
Update src/fsharp/AccessibilityLogic.fs
Co-authored-by: Gauthier Segay <smoothdeveloper@users.noreply.github.com>
1 parent 49d99be commit fb3c52b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/fsharp/AccessibilityLogic.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ let GetILAccessOfILPropInfo (ILPropInfo(tinfo, pdef)) =
270270
let getA = (resolveILMethodRef tdef mrefGet).Access
271271
let setA = (resolveILMethodRef tdef mrefSet).Access
272272

273-
// use the accessors to determine the visibility of the property
273+
// Use the accessors to determine the visibility of the property.
274+
// N.B. It is critical to keep the ordering in decreasing visibility order in the following match expression
274275
match getA, setA with
275276
| ILMemberAccess.Public, _
276277
| _, ILMemberAccess.Public -> ILMemberAccess.Public
@@ -385,4 +386,3 @@ let IsPropInfoAccessible g amap m ad = function
385386

386387
let IsFieldInfoAccessible ad (rfref:RecdFieldInfo) =
387388
IsAccessible ad rfref.RecdField.Accessibility
388-

0 commit comments

Comments
 (0)