(SymbolGraphGen) AnyObject constraints are always dropped #64550
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
generic constraints
Feature → generics: generic constraints
generics
Feature: generic declarations and types
source tooling
Area: IDE support, SourceKit, and other source tooling
swift 5.8
SymbolGraphGen
The swiftSymbolGraphGen library, responsible for gathering and emitting symbol graphs.
unexpected behavior
Bug: Unexpected behavior or incorrect output
SymbolGraphGen always drops generic constraints if they are
conforms(to: AnyObject):other constraints, including
Sendableobviously do not exhibit this behavior.{ "kind": { "identifier": "swift.property", "displayName": "Instance Property" }, "identifier": { "precise": "s:20AnyObjectConstraints4EnumOAARlzClE6memberytvp", "interfaceLanguage": "swift" }, "pathComponents": [ "Enum", "member" ], "names": { "title": "member", "subHeading": [ { "kind": "keyword", "spelling": "var" }, { "kind": "text", "spelling": " " }, { "kind": "identifier", "spelling": "member" }, { "kind": "text", "spelling": ": " }, { "kind": "typeIdentifier", "spelling": "Void", "preciseIdentifier": "s:s4Voida" } ] }, "swiftExtension": { "extendedModule": "AnyObjectConstraints", "typeKind": "swift.enum" }, "declarationFragments": [ { "kind": "keyword", "spelling": "var" }, { "kind": "text", "spelling": " " }, { "kind": "identifier", "spelling": "member" }, { "kind": "text", "spelling": ": " }, { "kind": "typeIdentifier", "spelling": "Void", "preciseIdentifier": "s:s4Voida" }, { "kind": "text", "spelling": " { " }, { "kind": "keyword", "spelling": "get" }, { "kind": "text", "spelling": " }" } ], "accessLevel": "internal", "location": { "uri": "file:///swift/swift-unidoc/TestModules/Snippets/AnyObjectConstraints.swift", "position": { "line": 7, "character": 8 } } },{ "kind": { "identifier": "swift.property", "displayName": "Instance Property" }, "identifier": { "precise": "s:20AnyObjectConstraints4EnumOAAs8SendableRzlE5otherytvp", "interfaceLanguage": "swift" }, "pathComponents": [ "Enum", "other" ], "names": { "title": "other", "subHeading": [ { "kind": "keyword", "spelling": "var" }, { "kind": "text", "spelling": " " }, { "kind": "identifier", "spelling": "other" }, { "kind": "text", "spelling": ": " }, { "kind": "typeIdentifier", "spelling": "Void", "preciseIdentifier": "s:s4Voida" } ] }, "swiftExtension": { "extendedModule": "AnyObjectConstraints", "typeKind": "swift.enum", "constraints": [ { "kind": "conformance", "lhs": "T", "rhs": "Sendable", "rhsPrecise": "s:s8SendableP" } ] }, "declarationFragments": [ { "kind": "keyword", "spelling": "var" }, { "kind": "text", "spelling": " " }, { "kind": "identifier", "spelling": "other" }, { "kind": "text", "spelling": ": " }, { "kind": "typeIdentifier", "spelling": "Void", "preciseIdentifier": "s:s4Voida" }, { "kind": "text", "spelling": " { " }, { "kind": "keyword", "spelling": "get" }, { "kind": "text", "spelling": " }" } ], "accessLevel": "internal", "location": { "uri": "file:///swift/swift-unidoc/TestModules/Snippets/AnyObjectConstraints.swift", "position": { "line": 11, "character": 8 } } },The text was updated successfully, but these errors were encountered: