Skip to content

Instantly share code, notes, and snippets.

@greggjaskiewicz
Created May 1, 2017 14:41
Show Gist options
  • Save greggjaskiewicz/23d512cfd3286d002c5ced142818f5f4 to your computer and use it in GitHub Desktop.
Save greggjaskiewicz/23d512cfd3286d002c5ced142818f5f4 to your computer and use it in GitHub Desktop.
TwoStructsAssociated_AssociatedTypes
struct TypeOneStruct {
    let foo1: Int
    let foo2: Int
    let bar1: Bool
}
struct TypeTwoStruct {
    let fooString: String
    let barBool: Bool
    let foo1: Int
}
enum OurStructs {
    case one(TypeOneStruct)
    case two(TypeTwoStruct)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment