Skip to content

Commit e55b9c1

Browse files
committed
Infinite Recursion in implicit array cast
1 parent 20b1e88 commit e55b9c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/Array.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,13 @@ public struct Array<T>
188188

189189
// Cast from/to platform type
190190

191-
public static func __implicit(_ list: PlatformList<T>) -> [T] {
191+
public static func __implicit(_ list: PlatformImmutableList<T>) -> [T] {
192192
return [T](list)
193193
}
194194

195195
public static func __implicit(_ array: [T]) -> PlatformList<T> {
196196
return array.platformList
197197
}
198-
199198
// Darwin only: cast from/to Cocoa type
200199

201200
#if DARWIN

0 commit comments

Comments
 (0)