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
iflet x =nonOptional(){} // expected-error{{initializer for conditional binding must have Optional type, not 'Int'}}
26
+
iflet x =nonOptionalStruct(){} // expected-error{{initializer for conditional binding must have Optional type, not 'NonOptionalStruct'}}
27
+
iflet x =nonOptionalEnum(){} // expected-error{{initializer for conditional binding must have Optional type, not 'NonOptionalEnum'}}
28
+
29
+
guardlet _ =nonOptionalStruct()else{fatalError()} // expected-error{{initializer for conditional binding must have Optional type, not 'NonOptionalStruct'}}
30
+
guardlet _ =nonOptionalEnum()else{fatalError()} // expected-error{{initializer for conditional binding must have Optional type, not 'NonOptionalEnum'}}
31
+
32
+
if case let x?=nonOptionalStruct(){} // expected-error{{'?' pattern cannot match values of type 'NonOptionalStruct'}}
33
+
if case let x?=nonOptionalEnum(){} // expected-error{{'?' pattern cannot match values of type 'NonOptionalEnum'}}
23
34
24
35
classB{} // expected-note * {{did you mean 'B'?}}
25
36
classD:B{}// expected-note * {{did you mean 'D'?}}
0 commit comments