Created
May 16, 2019 00:41
-
-
Save marcrasi/b73eaa7982129bf13f78ade2ab9a68f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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