-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Gardening: Migrate test suite to GH issues p. 9 #60718
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
Gardening: Migrate test suite to GH issues p. 9 #60718
Conversation
func nonThrowableDefaultRethrows(_ f: () throws -> () = {}) rethrows { | ||
try f() | ||
} | ||
// NOTE: This should compile and not emit a diagnostic because ideally the compiler could statically | ||
// know the default argument value could never throw. See SR-1524. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c85ac49
to
93c964f
Compare
static func fn(_ x: @escaping () -> Int) -> SR_10084_E_2 { // Okay | ||
fatalError() | ||
} | ||
static func fn(_ x: @escaping () -> Int) -> E2_52486 {} // Okay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am taking the liberty to remove some of these dummy returns within code I modified, since they present unnecessary noise and, conveniently, are mostly optional until after semantic analysis. Let me know if you consider this a bit too invasive.
@swift-ci please test |
No description provided.