Avatar
Avatar
Yuta Saito
@swift-main -warn-concurrency import Foundation func f(s: NSMutableString) async { DispatchQueue.main.async { print(s) } }
swiftNightly BOT 11/30/2021 5:01 AM
stderr:<stdin>:5:15: warning: cannot use parameter 's' with a non-sendable type 'NSMutableString' from concurrently-executed code print(s) ^ Foundation.NSMutableString:1:12: note: class 'NSMutableString' does not conform to the 'Sendable' protocol open class NSMutableString : NSString { ^