Created
October 3, 2018 19:00
-
-
Save Otbivnoe/a122818ce59b4b7a19ec947b16553adb 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 ProtocolWithAssociatedType { | |
associatedtype T | |
} | |
struct Test<T>: ProtocolWithAssociatedType {} // no compile error | |
struct Test: ProtocolWithAssociatedType {} // error: Type 'Test' does not conform to protocol 'ProtocolWithAssociatedType' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment