Files
Rintaro Ishizaki 7177055bdc [Refactoring] Skip failed witness decls in "add codable implementation"
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
2024-03-18 23:49:24 +09:00

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
}