[SR-8154] Inconsistent treating of AnyObject as a protocol #50686
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
standard library
Area: Standard library umbrella
Environment
Apple Swift version 4.2 (swiftlang-1000.0.16.7 clang-1000.10.25.3)
Target: x86_64-apple-darwin17.6.0
Additional Detail from JIRA
md5: 2cc307df0845ba702863f6b6f8c90bc7
Issue Description:
The documentation for AnyObject currently describes it as:
However, technically speaking, AnyObject is no longer a protocol. This fact can be revealed to the user through the invalid inheritance diagnostic:
Either the compiler should make AnyObject appear like a protocol to users, or the documentation should be changed to not state that it's a protocol.
The text was updated successfully, but these errors were encountered: