Skip to content

Commit 63384b4

Browse files
committed
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.
1 parent 7883dc2 commit 63384b4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@propertyWrapper
2+
struct Printed<Value: Codable>: Codable {
3+
var wrappedValue: Value {
4+
didSet { print(wrappedValue) }
5+
}
6+
}
7+
8+
struct Foo: Codable {
9+
@Printed var bar: Bool = false
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: %target-swift-frontend -c -primary-file %s %S/Inputs/property_wrappers_codable_multifile_other.swift
2+
3+
func test(_ value: Foo = Foo()) {
4+
let _: Codable = value
5+
}

0 commit comments

Comments
 (0)