Commit Graph

4 Commits

Author SHA1 Message Date
Doug Gregor
63384b447c Add now-fixed test case for rdar://problem/54028336.
This test case was triggering "does not conform to Codable"
diagnostics due to multi-file ordering issues.
2019-08-26 15:27:16 -07:00
Slava Pestov
03bdbed0d9 Sema: Diagnose missing class initializers late
This gives us a chance to synthesize the init(from:).

Fixes <https://bugs.swift.org/browse/SR-7315>, <rdar://problem/39102390>.
2018-04-19 18:22:34 -07:00
Itai Ferber
22185d237f CodingKey/*Codable tests don't need ObjC interop
Since all of the core types are now in the Swift stdlib, the tests no
longer rely on objc_interop or Foundation.
2017-04-25 14:11:24 -07:00
Itai Ferber
e2318392be Add CodingKey and *codable derived conformance
* Allow CodingKey conformance to be automatically derived for enums
  which have no raw type (with no associated values) and which have
  a raw type of String or Int.
* Allow Encodable and Decodable conformance to be automatically derived
  for classes and structs with Encodable/Decodable properties
* Add initial unit tests for verifying derived conformance
2017-04-25 13:13:35 -07:00