Skip to content

Commit 897472f

Browse files
committed
80922: 'Cannot assign null to non-nullable' for array of optionals
1 parent 91a5432 commit 897472f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/Array.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public struct Array<T>
439439
#endif
440440
}
441441

442-
public mutating func append(_ newElement: T) {
442+
public mutating func append(_ newElement: T¡) {
443443
makeUnique()
444444
#if JAVA
445445
list.add(newElement)
@@ -454,7 +454,7 @@ public struct Array<T>
454454
#endif
455455
}
456456

457-
public mutating func insert(_ newElement: T, at index: Int) {
457+
public mutating func insert(_ newElement: T¡, at index: Int) {
458458
makeUnique()
459459
#if JAVA
460460
list.add(index, newElement)
@@ -484,7 +484,7 @@ public struct Array<T>
484484
#endif
485485
}
486486

487-
public mutating func remove(_ object: T) {
487+
public mutating func remove(_ object: T¡) {
488488
makeUnique()
489489
#if JAVA
490490
list.remove(object)
@@ -495,7 +495,7 @@ public struct Array<T>
495495
#endif
496496
}
497497

498-
@discardableResult public mutating func removeLast() -> T {
498+
@discardableResult public mutating func removeLast() -> T¡ {
499499
let c = count
500500
if c > 0 {
501501
makeUnique()

0 commit comments

Comments
 (0)