-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Handle Boolean literals as enum raw values. #28274
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
Conversation
@swift-ci please smoke test |
Is the depth map stuff supposed to be attached? |
I got lazy, sorry; it's also in the more purposeful #28276 |
} | ||
|
||
// expected-error@+1{{'IsRecursive' declares raw type 'Bool', but does not conform to RawRepresentable and conformance could not be synthesized}} | ||
enum IsRecursive : Bool, Equatable, Hashable { |
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.
Some more tests: an @objc enum (and if we allow this, an IRGen test), an enum with an invalid raw value expression.
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.
@objc
enums are banned; I've added more tests
Fixes rdar://problem/55384273.
3821c86
to
21a7fba
Compare
@swift-ci please smoke test and merge |
3 similar comments
@swift-ci please smoke test and merge |
@swift-ci please smoke test and merge |
@swift-ci please smoke test and merge |
Fixes rdar://problem/55384273.