mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When there are problems in the properties in the target type, witness methods may not be synthesized. Don't try to add such methods. https://github.com/apple/swift/issues/72387
9 lines
310 B
Swift
9 lines
310 B
Swift
// RUN: %empty-directory(%t.result)
|
|
|
|
// RUN: %refactor -add-explicit-codable-implementation -source-filename %s -pos=%(line + 2):8 > %t.result/invalid_member.swift
|
|
// RUN: diff -u %S/Outputs/has_error/invalid_member.swift.expected %t.result/invalid_member.swift
|
|
struct Foo: Codable {
|
|
var other: Unknown
|
|
}
|
|
|