Skip to content

Commit e921b44

Browse files
authored
Merge pull request #26854 from DougGregor/rdar-54028336
2 parents 38fdb33 + 63384b4 commit e921b44

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)