Skip to content

Instantly share code, notes, and snippets.

@marcrasi
Created May 16, 2019 00:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcrasi/b73eaa7982129bf13f78ade2ab9a68f0 to your computer and use it in GitHub Desktop.
Save marcrasi/b73eaa7982129bf13f78ade2ab9a68f0 to your computer and use it in GitHub Desktop.
protocol A {}
struct Wrapper<T> {
var t: T
}
extension Wrapper: A where T: A {}
func inner<T: A>(_ t: T) {}
func outer<T: A>(_ t: T) {
let _: (Wrapper<T>) -> () = inner
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment