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
@slavapestov points out that the code isn't actually correct; if Bar's version was a true override, I would be able to do Bar<Int>().add("abc"), since I can do Foo().add("abc").
I think you're probably right, that accepting the code as written was probably a bug. I'll leave it to y'all to decide whether to be backwards compatible with bad code. 🙂
Environment
Xcode: Version 8.2.1 (8C1002)
macOS: 10.12.3 (16D32)
For Swift 3.1, used the 3.1 Snapshot dated March 6, 2017.
Additional Detail from JIRA
md5: 85f3df58b7d60e6325cc8770beef7e52
Issue Description:
The following code compiles using Swift 3.0.2/Xcode 8.2; it reports an error using Xcode 8.3 beta 3 and the latest Swift 3.1 snapshot:
Before and after:
If I change the definition of
Bar
to:... then it builds with both versions of Swift.
I've also filed in radar as 30880621.
The text was updated successfully, but these errors were encountered: