mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Inserts the synthesized implementation. As part of this, fix some ASTPrinter bugs. rdar://87904700
16 lines
405 B
Swift
16 lines
405 B
Swift
// RUN: rm -rf %t.result && mkdir -p %t.result
|
|
struct Response: Codable {
|
|
let pages: [Page]
|
|
|
|
struct Page: Codable {
|
|
let results: [Result]
|
|
|
|
struct Result: Codable {
|
|
let title: String
|
|
}
|
|
}
|
|
}
|
|
|
|
// RUN: %refactor -add-explicit-codable-implementation -source-filename %s -pos=8:12 > %t.result/codable.swift
|
|
// RUN: diff -u %S/Outputs/nested/codable.swift.expected %t.result/codable.swift
|