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
letm1:@discardableResult()->Int // expected-error {{attribute can only be applied to declarations, not types}} {{11-30=}} {{none}}
356
+
varm2:@discardableResult()->Int // expected-error {{attribute can only be applied to declarations, not types}} {{11-30=}} {{none}}
357
+
letm3:GI65705<@discardableResult()->Int> // expected-error{{attribute can only be applied to declarations, not types}} {{19-37=}} {{none}}
358
+
359
+
func f1(_:inout@discardableResultInt){} // expected-error {{attribute can only be applied to declarations, not types}} {{20-39=}} {{3-3=@discardableResult }} {{none}}
360
+
func f2(_:@discardableResultInt){} // expected-error {{attribute can only be applied to declarations, not types}} {{14-33=}} {{3-3=@discardableResult }} {{none}}
361
+
362
+
func stmt(_ a:Int?){
363
+
iflet _:@discardableResultInt= a { // expected-error {{attribute can only be applied to declarations, not types}} {{15-34=}}
364
+
}
365
+
ifvar _:@discardableResultInt= a { // expected-error {{attribute can only be applied to declarations, not types}} {{15-34=}}
0 commit comments