File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,13 +197,13 @@ func moreComplexUnwrapFixes() {
197
197
// expected-note@-2{{force-unwrap using '!'}}{{12-12=!}}
198
198
199
199
takeOpt ( t. optS. value) // expected-error{{value of optional type 'T?' must be unwrapped to refer to member 'optS' of wrapped base type 'T'}}
200
- // expected-note@-1{{chain the optional using '?'}}{{12-12 =?}}
200
+ // expected-note@-1{{chain the optional using '?'}}{{17-17 =?}}
201
201
// expected-error@-2{{value of optional type 'S?' must be unwrapped to refer to member 'value' of wrapped base type 'S'}}
202
- // expected-note@-3{{chain the optional using '?'}}{{17-17 =?}}
202
+ // expected-note@-3{{chain the optional using '?'}}{{12-12 =?}}
203
203
204
204
takeNon ( t. optS. value) // expected-error{{value of optional type 'T?' must be unwrapped to refer to member 'optS' of wrapped base type 'T'}}
205
- // expected-note@-1{{chain the optional using '?'}}{{12-12 =?}}
205
+ // expected-note@-1{{chain the optional using '?'}}{{17-17 =?}}
206
206
// expected-error@-2{{value of optional type 'S?' must be unwrapped to refer to member 'value' of wrapped base type 'S'}}
207
- // expected-note@-3{{chain the optional using '?'}}{{17-17 =?}}
207
+ // expected-note@-3{{chain the optional using '?'}}{{12-12 =?}}
208
208
// expected-note@-4{{force-unwrap using '!'}}{{17-17=!}}
209
209
}
You can’t perform that action at this time.
0 commit comments