Skip to content

Commit 0d3f93c

Browse files
committed
Add missing fallback for Item (consistent with tryItem)
1 parent 9120572 commit 0d3f93c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FSharpPlus/Control/Indexable.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ open FSharpPlus.Internals.MonadOps
1616

1717
type Item =
1818
inherit Default1
19-
19+
20+
static member inline Item (x: '``Indexable<'T>`` , k , [<Optional>]_impl: Default2) = (^``Indexable<'T>`` : (member GetValue : _ -> 'T) x, k) : 'T
2021
static member inline Item (x: '``Indexable<'T>`` , k , [<Optional>]_impl: Default1) = (^``Indexable<'T>`` : (member get_Item : _ -> 'T) x, k) : 'T
2122
static member inline Item (_: 'T when 'T: null and 'T: struct, _, _impl: Default1) = ()
2223

0 commit comments

Comments
 (0)