Skip to content

Commit c2d6fd0

Browse files
committed
Conditional around IReadOnlyCollection
1 parent 28cdef3 commit c2d6fd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/fsharp/FSharp.Core/iseq.fs

+2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@ namespace Microsoft.FSharp.Collections
499499
override __.Length () =
500500
match enumerable with
501501
| :? ICollection<'T> as a -> a.Count
502+
#if !FSCORE_PORTABLE_OLD
502503
| :? IReadOnlyCollection<'T> as a -> a.Count
504+
#endif
503505
| _ ->
504506
use e = enumerable.GetEnumerator ()
505507
let mutable count = 0

0 commit comments

Comments
 (0)