Skip to content

Commit 30f646f

Browse files
committed
A couple missing .ctors for Swift.Array
1 parent ad697f6 commit 30f646f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Source/Array.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public struct Array<T>
8989
}*/
9090
#endif
9191

92-
init(repeating value: T, count: Int) {
92+
public init(repeating value: T, count: Int) {
9393
if count == 0 {
9494
list = PlatformList<T>()
9595
} else {
@@ -107,7 +107,6 @@ public struct Array<T>
107107
}
108108
}
109109

110-
111110
public init(_ list: PlatformImmutableList<T>) {
112111
#if JAVA | CLR | ISLAND
113112
self.list = PlatformList<T>(list)
@@ -130,11 +129,9 @@ public struct Array<T>
130129
// our aggregate operations like .map, .filter will errase our collection type and yield ISequence
131130
// so in order to have consistency with apple swift compiling
132131
// we will do something like [String](fields.map(fieldNameWithRemovedPrivatePrefix)).someArrayFunc
133-
#if !ECHOES
134132
public convenience init(_ sequence: ISequence<T>) {
135133
self.init(sequence: sequence)
136134
}
137-
#endif
138135

139136
public init(count: Int, repeatedValue: T) {
140137
#if JAVA
@@ -738,7 +735,7 @@ public extension Swift.Array : ISequence<T> {
738735
#endif
739736

740737
#if ISLAND
741-
@Implements(typeOf(IEnumerable), "GetEnumerator")
738+
@Implements(typeOf(IEnumerable), "GetEnumerator")
742739
func GetEnumeratorNG() -> IEnumerator! {
743740
return list.GetEnumerator()
744741
}

0 commit comments

Comments
 (0)