Created
November 27, 2016 07:21
-
-
Save ezura/6fc490f858db20de770a511b4642cdd2 to your computer and use it in GitHub Desktop.
Segmentation fault: 11 (´・ω・`)? #swift #CodePiece
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
// 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