You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CppInteroperability/CppInteroperabilityStatus.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ This status table describes which of the following C++ language features can be
76
76
| Typedefs / Type aliases | Yes |
77
77
| Global Variables | Yes |
78
78
| Namespaces | Yes |
79
-
| Inline Namespaces | Yes, with some known issues (https://bugs.swift.org/browse/SR-15956)|
79
+
| Inline Namespaces | Yes, with some known issues ([#58217](https://github.com/apple/swift/issues/58217)) |
80
80
| Exceptions | No |
81
81
| Fields | Yes |
82
82
| Member functions | Yes. Some value category overloads aren't imported |
@@ -120,7 +120,7 @@ This status table describes which of the following C++ standard library features
120
120
## Known Issues
121
121
122
122
### Inline Namespaces
123
-
-https://bugs.swift.org/browse/SR-15956: Swift's typechecker currently doesn't allow calling a function from an inline namespace when it's referenced through the parent namespace. Example of a test that fails: https://github.com/apple/swift/blob/main/test/Interop/Cxx/namespace/inline-namespace-function-call-broken.swift
123
+
-[#58217](https://github.com/apple/swift/issues/58217): Swift's typechecker currently doesn't allow calling a function from an inline namespace when it's referenced through the parent namespace. Example of a test that fails: https://github.com/apple/swift/blob/main/test/Interop/Cxx/namespace/inline-namespace-function-call-broken.swift
Copy file name to clipboardExpand all lines: docs/DynamicCasting.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -665,7 +665,7 @@ let a = NSNumber()
665
665
print(a is Any)
666
666
```
667
667
668
-
*SR-2289: CF types cannot be cast to protocol existentials
668
+
*[#44896](https://github.com/apple/swift/issues/44896): CF types cannot be cast to protocol existentials
669
669
670
670
```
671
671
import Foundation
@@ -680,7 +680,7 @@ extension CFBitVector : P {
680
680
print(CFBitVector.makeImmutable(from: [10,20]) is P)
681
681
```
682
682
683
-
*SR-4552: Cannot cast `Optional<T> as Any` to protocol type. Note that this is a particular problem for reflection with weak fields, since `Mirror` reflects those as `Any` containing an `Optional` value.
683
+
*[#47129](https://github.com/apple/swift/issues/47129): Cannot cast `Optional<T> as Any` to protocol type. Note that this is a particular problem for reflection with weak fields, since `Mirror` reflects those as `Any` containing an `Optional` value.
684
684
685
685
```
686
686
protocol P {}
@@ -692,7 +692,7 @@ let a = c as? Any
692
692
print(a is P)
693
693
```
694
694
695
-
*SR-8964: `Any` containing `Optional<Any>` cannot cast to `Error`
695
+
*[#51469](https://github.com/apple/swift/issues/51469): `Any` containing `Optional<Any>` cannot cast to `Error`
696
696
697
697
```
698
698
struct MyError: Error { }
@@ -703,10 +703,10 @@ let b: Any = a
703
703
print(b is Error)
704
704
```
705
705
706
-
*SR-6126: Inconsistent results for nested optionals
706
+
*[#48681](https://github.com/apple/swift/issues/48681): Inconsistent results for nested optionals
707
707
708
708
```
709
-
// Note: SR-6126 includes many cases similar to the following
709
+
// Note: This issue includes many cases similar to the following
710
710
let x: Int? = nil
711
711
print(x as Int??) // ==> "Optional(nil)"
712
712
// Swift 5.3: prints "nil"
@@ -730,7 +730,7 @@ let a = NSObjectProtocol.self
730
730
print(a is NSObjectProtocol.Type)
731
731
```
732
732
733
-
*SR-1999: Cannot cast `Any` contents to a protocol type
733
+
*[#44608](https://github.com/apple/swift/issues/44608): Cannot cast `Any` contents to a protocol type
Copy file name to clipboardExpand all lines: docs/GenericsManifesto.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ There are a number of restrictions to the use of generics that fall out of the i
27
27
28
28
### Recursive protocol constraints (*)
29
29
30
-
*This feature has been accepted in [SE-0157](https://github.com/apple/swift-evolution/blob/main/proposals/0157-recursive-protocol-constraints.md) and is tracked by [SR-1445](https://bugs.swift.org/browse/SR-1445).*
30
+
*This feature has been accepted in [SE-0157](https://github.com/apple/swift-evolution/blob/main/proposals/0157-recursive-protocol-constraints.md) and is tracked by [#44054](https://github.com/apple/swift/issues/44054).*
31
31
32
32
Currently, an associated type cannot be required to conform to its enclosing protocol (or any protocol that inherits that protocol). For example, in the standard library `SubSequence` type of a `Sequence` should itself be a `Sequence`:
33
33
@@ -43,7 +43,7 @@ The compiler currently rejects this protocol, which is unfortunate: it effective
43
43
44
44
### Nested generics
45
45
46
-
*This feature was tracked by [SR-1446](https://bugs.swift.org/browse/SR-1446) and was released with Swift 3.1.*
46
+
*This feature was tracked by [#44055](https://github.com/apple/swift/issues/44055) and was released with Swift 3.1.*
47
47
48
48
Currently, a generic type cannot be nested within another generic type, e.g.
49
49
@@ -57,7 +57,7 @@ There isn't much to say about this: the compiler simply needs to be improved to
57
57
58
58
### Concrete same-type requirements
59
59
60
-
*This feature was tracked by [SR-1009](https://bugs.swift.org/browse/SR-1009) and was released with Swift 3.1.*
60
+
*This feature was tracked by [#43621](https://github.com/apple/swift/issues/43621) and was released with Swift 3.1.*
61
61
62
62
Currently, a constrained extension cannot use a same-type constraint to make a type parameter equivalent to a concrete type. For example:
63
63
@@ -114,7 +114,7 @@ Note: generic associatedtypes address many use cases also addressed by higher-ki
114
114
115
115
### Generic subscripts
116
116
117
-
*This feature has been accepted in [SE-0148](https://github.com/apple/swift-evolution/blob/main/proposals/0148-generic-subscripts.md), was tracked by [SR-115](https://bugs.swift.org/browse/SR-115) and was released with Swift 4.*
117
+
*This feature has been accepted in [SE-0148](https://github.com/apple/swift-evolution/blob/main/proposals/0148-generic-subscripts.md), was tracked by [#42737](https://github.com/apple/swift/issues/42737) and was released with Swift 4.*
118
118
119
119
Subscripts could be allowed to have generic parameters. For example, we could introduce a generic subscript on a `Collection` that allows us to pull out the values at an arbitrary set of indices:
0 commit comments