main code repository.
Revision | ce5385ffd35632207ca03bc3828532f561944e00 (tree) |
---|---|
Time | 2018-03-18 10:40:33 |
Author | masakih <masakih@user...> |
Commiter | masakih |
associatedtypeを使用しないようにした
@@ -50,11 +50,9 @@ protocol CoreDataAccessor: CoreDataProvider { | ||
50 | 50 | |
51 | 51 | protocol CoreDataManager: CoreDataAccessor { |
52 | 52 | |
53 | - associatedtype InstanceType = Self | |
53 | + static var `default`: Self { get } | |
54 | 54 | |
55 | - static var `default`: InstanceType { get } | |
56 | - | |
57 | - static func oneTimeEditor() -> InstanceType | |
55 | + static func oneTimeEditor() -> Self | |
58 | 56 | } |
59 | 57 | |
60 | 58 | // MARK: - Extension |