We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Stream.property(forKey:) and Stream.setProperty(_:forKey:) methods have the following signatures on macOS:
Stream.property(forKey:)
Stream.setProperty(_:forKey:)
func property(forKey: Stream.PropertyKey) -> Any? func setProperty( _ property: Any?, forKey key: Stream.PropertyKey ) -> Bool
However, on Linux the signature appears to be:
func property(forKey: Stream.PropertyKey) -> AnyObject? func setProperty( _ property: AnyObject?, forKey key: Stream.PropertyKey ) -> Bool
I.e. they accept and return AnyObject? instead of Any?.
AnyObject?
Any?
I discovered this when trying to make an InputStream subclass that works in macOS and Linux on Swift 5.9
InputStream
Swift version 5.9-dev (LLVM 4f65c75dc0fa855, Swift 174828b01c4e250) Target: x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
Stream.property(forKey:)
andStream.setProperty(_:forKey:)
methods have the following signatures on macOS:However, on Linux the signature appears to be:
I.e. they accept and return
AnyObject?
instead ofAny?
.I discovered this when trying to make an
InputStream
subclass that works in macOS and Linux on Swift 5.9The text was updated successfully, but these errors were encountered: