Skip to content

Instantly share code, notes, and snippets.

@ffried
Created May 25, 2021 20:34
Show Gist options
  • Save ffried/cc0d682598c1ed8e30790446e208f947 to your computer and use it in GitHub Desktop.
Save ffried/cc0d682598c1ed8e30790446e208f947 to your computer and use it in GitHub Desktop.
Incorrect redundant conformance constraint warnings
protocol P0 {
associatedtype Parent: P0
}
protocol P1: P0 {}
protocol P2: P1 {
associatedtype X: P4 where X.Parent == Self
}
protocol P4: P0 where Parent: P1 {
associatedtype Y: P5 where Y.Parent == Self
}
protocol P5: P0 where Parent: P4 {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment