Skip to content

Commit 62e0da9

Browse files
authored
[Property wrappers] Modernize self enclosing test (#30103)
The init parameter name changed to `wrappedValue` as of Swift 5.2.
1 parent 93d7000 commit 62e0da9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Interpreter/property_wrappers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ struct Observable<Value: Equatable> {
1818
private var stored: Value
1919

2020

21-
init(initialValue: Value) {
22-
self.stored = initialValue
21+
init(wrappedValue: Value) {
22+
self.stored = wrappedValue
2323
}
2424

2525
var wrappedValue: Value {

0 commit comments

Comments
 (0)