File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
test/AutoDiff/validation-test Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ PropertyWrapperTests.test("SimpleClass") {
141
141
*/
142
142
143
143
// From: https://github.com/apple/swift-evolution/blob/master/proposals/0258-property-wrappers.md#proposed-solution
144
+ // Tests the following functionality:
145
+ // - Enum property wrapper.
144
146
@propertyWrapper
145
147
enum Lazy < Value> {
146
148
case uninitialized( ( ) -> Value )
@@ -151,10 +153,13 @@ enum Lazy<Value> {
151
153
}
152
154
153
155
var wrappedValue : Value {
156
+ // TODO(TF-1250): Replace with actual mutating getter implementation.
157
+ // Requires differentiation to support functions with multiple results.
154
158
get {
155
159
switch self {
156
160
case . uninitialized( let initializer) :
157
161
let value = initializer ( )
162
+ // NOTE: Actual implementation assigns to `self` here.
158
163
return value
159
164
case . initialized( let value) :
160
165
return value
You can’t perform that action at this time.
0 commit comments