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-9019] Inaccurate error message on invalid enum raw type #51522

Closed
AnthonyLatsis opened this issue Oct 16, 2018 · 1 comment
Closed

[SR-9019] Inaccurate error message on invalid enum raw type #51522

AnthonyLatsis opened this issue Oct 16, 2018 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself good first issue Good for newcomers

Comments

@AnthonyLatsis
Copy link
Collaborator

Previous ID SR-9019
Radar None
Original Reporter @AnthonyLatsis
Type Bug
Status Closed
Resolution Done
Environment

Xcode 10.0 (10A255)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, StarterBug
Assignee adamshin (JIRA)
Priority Medium

md5: 2278f776c68663e1b14f4cfd769271b5

Issue Description:

The error message should rather be specific about which literal types are allowed as raw values, i.e. Raw type 'T' is not expressible by an integer, string or floating-point literal

enum Foo: [Int] { // Raw type '[Int]' is not expressible by any literal
  case a, b
}
@swift-ci
Copy link
Collaborator

Comment by Adam Shin (JIRA)

#20002

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants