-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
allow constants for string literals types #6151
Comments
We can't do this since it would be a breaking change --
|
in the expression context
if we assuming it's hasn't yet been done, then it answers it |
Like @RyanCavanaugh said, in order to do |
Here is the proposal: #6167 (comment) |
What about allowing interpolated strings as string literal types. So:
|
The issue in the OP should be fixed by #10676 Allowing string interpolation, or any form of string manipulation in type positions is not something we are looking to allow. for this specific example, use |
@Aleksey-Bykov do you agree this proposal is covered by #10676 and |
yes, it's solved, please clise |
The text was updated successfully, but these errors were encountered: