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
Copy file name to clipboardExpand all lines: test/1_stdlib/DispatchRenames.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,13 @@
3
3
4
4
import Dispatch
5
5
6
-
letq=dispatch_queue_create("",nil) // expected-error {{'dispatch_queue_create' has been replaced by 'DispatchQueue.init(label:attributes:target:)'}}
6
+
letq=dispatch_queue_create("",nil) // expected-error {{'dispatch_queue_create' has been replaced by 'DispatchQueue.init(label:qos:attributes:autoreleaseFrequency:target:)'}}
7
7
8
8
_ =dispatch_queue_get_label(q) // expected-error {{'dispatch_queue_get_label' has been replaced by property 'DispatchQueue.label'}}
9
9
10
10
_ =dispatch_get_global_queue(0,0) // expected-error {{'dispatch_get_global_queue' has been replaced by 'DispatchQueue.global(attributes:)'}}
11
11
12
12
_ =dispatch_source_create(OpaquePointer(bitPattern:~0)!,0,0,nil) // expected-error {{'dispatch_source_create' is unavailable: Use DispatchSource class methods}}
13
13
14
-
_ =dispatch_get_main_queue() // expected-error {{'dispatch_get_main_queue()' has been renamed to 'DispatchQueue.main'}}
14
+
_ =dispatch_get_main_queue() // expected-error {{'dispatch_get_main_queue()' has been replaced by property 'DispatchQueue.main'}}
0 commit comments