-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
CodableArea → standard library: `Codable` and co.Area → standard library: `Codable` and co.bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconformancesFeature → protocol: protocol conformancesFeature → protocol: protocol conformancesderived conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesextensionFeature → declarations: `extension` declarationsFeature → declarations: `extension` declarationsgenericsFeature: generic declarations and typesFeature: generic declarations and typesnested typesFeature: nested typesFeature: nested typesswift 5.7type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysisunexpected errorBug: Unexpected errorBug: Unexpected error
Description
This compiles:
enum Namespace<Outer> {
struct Struct<Inner> where Outer == WhatThisIsDoesNotMatter {
public var property: Inner
}
}
typealias WhatThisIsDoesNotMatter = Never
extension Namespace<WhatThisIsDoesNotMatter>.Struct: Encodable where Inner: Encodable { }
Remove the redundant constraint, however, and it does not:
extension Namespace.Struct: Encodable where Inner: Encodable {}
Metadata
Metadata
Assignees
Labels
CodableArea → standard library: `Codable` and co.Area → standard library: `Codable` and co.bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfconformancesFeature → protocol: protocol conformancesFeature → protocol: protocol conformancesderived conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesFeature → protocol → conformances: derived conformances aka synthesized conformancesextensionFeature → declarations: `extension` declarationsFeature → declarations: `extension` declarationsgenericsFeature: generic declarations and typesFeature: generic declarations and typesnested typesFeature: nested typesFeature: nested typesswift 5.7type checkerArea → compiler: Semantic analysisArea → compiler: Semantic analysisunexpected errorBug: Unexpected errorBug: Unexpected error