Commit Graph

1 Commits

Author SHA1 Message Date
Jordan Rose
9ee996cf82 Eagerly create init(from:) when looking up 'init' on a Decodable type (#17712)
Otherwise, the initializer won't be inherited properly onto a
subclass, resulting in the base class being allocated instead of the
subclass when using Sub.init(from:).

https://bugs.swift.org/browse/SR-8083
2018-07-03 18:09:09 -07:00