Skip to content

Commit 99cdfa8

Browse files
authored
[APINotes] Source compatibility for nullability on array parameters. (swiftlang#5800)
While the second argument to NSFastEnumeration's countByEnumerating(with:objects:count:) really shouldn't be nil, it's possible someone got away with it in Swift 3. Follow-up for rdar://problem/25846421.
1 parent 8ee7e7b commit 99cdfa8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apinotes/Foundation.apinotes

+10
Original file line numberDiff line numberDiff line change
@@ -1738,3 +1738,13 @@ Enumerators:
17381738
SwiftName: regularExpression
17391739
- Name: NSStringEnumerationByLines
17401740
SwiftName: byLines
1741+
SwiftVersions:
1742+
- Version: 3
1743+
Protocols:
1744+
- Name: NSFastEnumeration
1745+
Methods:
1746+
- Selector: 'countByEnumeratingWithState:objects:count:'
1747+
MethodKind: Instance
1748+
Parameters:
1749+
- Position: 1
1750+
Nullability: U

0 commit comments

Comments
 (0)