Skip to content

Instantly share code, notes, and snippets.

@ezura
Created November 27, 2016 07:21
Show Gist options
  • Save ezura/6fc490f858db20de770a511b4642cdd2 to your computer and use it in GitHub Desktop.
Save ezura/6fc490f858db20de770a511b4642cdd2 to your computer and use it in GitHub Desktop.
Segmentation fault: 11 (´・ω・`)? #swift #CodePiece
// objc
@interface ObjcClass<T> : NSObject
@property(nonnull) T property;
@end
// swift
protocol ContainGenericType {
associatedtype T
var property: T { get }
}
extension ObjcClass: ContainGenericType {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment