You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases like `case .test(_)` it might not be possible to
establish a type of `_` and hole cannot be propagated to
it from context if condition of switch is incorrect, so
`_` just like a named pattern should be allowed to become
a hole.
Resolves: rdar://96997534
letv= container.prop.kind // expected-error {{value of optional type 'Value?' must be unwrapped to refer to member 'kind' of wrapped base type 'Value'}}
885
+
// expected-note@-1 {{chain the optional using '?' to access member 'kind' only for non-'nil' base values}}
886
+
// expected-note@-2 {{force-unwrap using '!' to abort execution if the optional value contains 'nil'}}
887
+
888
+
switch v.kind { // expected-error {{value of type 'Value.Kind' has no member 'kind'}}
0 commit comments