Skip to content

Instantly share code, notes, and snippets.

@mbrandonw
Created February 2, 2016 21:41
Show Gist options
  • Select an option

  • Save mbrandonw/2b0e29b1476bc097f256 to your computer and use it in GitHub Desktop.

Select an option

Save mbrandonw/2b0e29b1476bc097f256 to your computer and use it in GitHub Desktop.
Swift compiler bug?
// In Parent.swift
struct Parent {
}
// In Child.swift
extension Parent {
struct Child {
}
}
// In Extension.swift
// Compile error: 'Child' is not a member type of 'Parent'
extension Parent.Child {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment