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
letf5:@convention(INTERCAL)(Int)->Int={ $0 } // expected-error{{convention 'INTERCAL' not supported}}
13
13
14
-
// SR-11027
14
+
// https://github.com/apple/swift/issues/53417
15
15
16
-
func sr11027(_ f:@convention(block)@autoclosure()->Int)->Void{} // expected-error {{'@convention(block)' attribute is not allowed on '@autoclosure' types}}
17
-
sr11027(1)
16
+
do{
17
+
func block(_ f:@convention(block)@autoclosure()->Int)->Void{} // expected-error {{'@convention(block)' attribute is not allowed on '@autoclosure' types}}
18
+
block(1)
18
19
19
-
funcsr11027_c(_ f:@convention(c)@autoclosure()->Int)->Void{} // expected-error{{'@convention(c)' attribute is not allowed on '@autoclosure' types}}
20
-
sr11027_c(1)
20
+
funcc(_ f:@convention(c)@autoclosure()->Int)->Void{} // expected-error{{'@convention(c)' attribute is not allowed on '@autoclosure' types}}
21
+
c(1)
21
22
22
-
funcsr11027_swift(_ f:@convention(swift)@autoclosure()->Int)->Void{} // OK
23
-
sr11027_swift(1)
23
+
funcswift(_ f:@convention(swift)@autoclosure()->Int)->Void{} // OK
24
+
swift(1)
24
25
25
-
funcsr11027_thin(_ f:@convention(thin)@autoclosure()->Int)->Void{} // OK
26
-
sr11027_thin(1)
26
+
functhin(_ f:@convention(thin)@autoclosure()->Int)->Void{} // OK
27
+
thin(1)
27
28
28
-
funcsr11027_2(_ f:@autoclosure@convention(block)()->Int)->Void{} // expected-error {{'@convention(block)' attribute is not allowed on '@autoclosure' types}}
29
-
sr11027_2(1)
29
+
funcblock2(_ f:@autoclosure@convention(block)()->Int)->Void{} // expected-error {{'@convention(block)' attribute is not allowed on '@autoclosure' types}}
30
+
block2(1)
30
31
31
-
funcsr11027_c_2(_ f:@autoclosure@convention(c)()->Int)->Void{} // expected-error {{'@convention(c)' attribute is not allowed on '@autoclosure' types}}
32
-
sr11027_c_2(1)
32
+
funcc2(_ f:@autoclosure@convention(c)()->Int)->Void{} // expected-error {{'@convention(c)' attribute is not allowed on '@autoclosure' types}}
33
+
c2(1)
33
34
34
-
funcsr11027_swift_2(_ f:@autoclosure@convention(swift)()->Int)->Void{} // OK
35
-
sr11027_swift_2(1)
35
+
funcswift2(_ f:@autoclosure@convention(swift)()->Int)->Void{} // OK
36
+
swift2(1)
36
37
37
-
func sr11027_thin_2(_ f:@autoclosure@convention(thin)()->Int)->Void{} // OK
38
-
sr11027_thin_2(1)
38
+
func thin2(_ f:@autoclosure@convention(thin)()->Int)->Void{} // OK
0 commit comments