Avatar
init(from decoder: Decoder)private var に対する assign がエラーになりそうな予感。
2:52 AM
https://github.com/apple/swift/pull/16376/files#diff-01a6eb231899c107eafd479a7ffe09f7R376 シンプルな enum に対する Equatable,Hashable だけは別ファイルでもいけるっぽいですね。 (edited)
This works for Equatable, Hashable, Encodable, Decodable (and thus Codable), and CaseIterable. For instance, struct Foo<T> { var x: T } extension Foo: Equatable where T: Equatable {} Fix...
2:57 AM
ってその辺は元々暗黙でconformしているやつか。