Skip to content
New issue

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

[SR-12981] Foundation.StreamDelegate has required methods on Linux but not Darwin #3252

Closed
weissi opened this issue Jun 11, 2020 · 2 comments
Assignees

Comments

@weissi
Copy link
Member

weissi commented Jun 11, 2020

Previous ID SR-12981
Radar rdar://problem/64947427
Original Reporter @weissi
Type Bug
Status Resolved
Resolution Done
Environment
$ jw-docker-swift-master swiftc -version
docker.io/swiftlang/swift:nightly-master-bionic
Swift version 5.3-dev (LLVM 6049ecf8a0, Swift 4205e46959)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee @spevans
Priority Medium

md5: 05cc4646f1feaadf3395f0a5361c08d9

Issue Description:

This program

import Foundation
class Foo: NSObject, StreamDelegate {}

compiles just fine on Darwin but not Linux:

$ jw-docker-swift-master swiftc test.swift
docker.io/swiftlang/swift:nightly-master-bionic
test.swift:3:7: error: type 'Foo' does not conform to protocol 'StreamDelegate'
class Foo: NSObject, StreamDelegate {}
      ^
Foundation.StreamDelegate:2:10: note: protocol requires function 'stream(_:handle:)' with type '(Stream, Stream.Event) -> ()'
    func stream(_ aStream: Stream, handle eventCode: Stream.Event)
         ^
@weissi
Copy link
Member Author

weissi commented Jun 19, 2020

@swift-ci create

@spevans
Copy link
Collaborator

spevans commented Dec 17, 2020

Looks like the default implementation just needed to be made public

#2947

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants