Skip to content

Instantly share code, notes, and snippets.

@ArchieR7
Created November 22, 2018 01:51
Show Gist options
  • Save ArchieR7/a19d0c76f5eb6971a634cb8197d19834 to your computer and use it in GitHub Desktop.
Save ArchieR7/a19d0c76f5eb6971a634cb8197d19834 to your computer and use it in GitHub Desktop.
protocol SomeProtocol {
associatedtype SomeType: Decodable
var bar: String { get }
}
struct Foo: SomeProtocol {
struct SomeType: Decodable {
let bar: String
}
var bar: String
}
struct Foo2: SomeProtocol {
typealias SomeType = Bool
var bar: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment