-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
scala.compiletime.ops.long.S doesn't work #18342
Comments
JFTR previously found bug in a similar subsystem: #18340 |
Yeah, makes sense as https://github.com/lampepfl/dotty/blob/72f9d7afc3acfd8201e164da6608b99bb9218b64/compiler/src/dotty/tools/dotc/core/TypeComparer.scala#L1488 only considers ops.int, not also the equivalent in ops.long. Seems like a simple fix. |
Is there a reason to keep |
And then |
@unkarjedy what was your actual use-case for this? I'm thinking of issuing a PR deprecating it instead of fixing it, since it was a mistake to create is in the first place, IMO (my mistake). |
What's the mistake? Just unnecessary? |
Yeah, it does not make sense to have an incremental compiletime numbering until |
FWIW, there is already a branch to fix this (no tests ATM), but I think it's better to deprecate it. |
I issued a PR for deprecation. If it will be decided to keep and fix this feature I will complete that instead. |
I don't have a real world use case for this. |
Related #13400
Compiler version
3.3.1-RC4
Minimized code
Output
Compiler generates error for
1L
:Expectation
No compilation error.
Type
scala.compiletime.ops.long.S[0L]
should be equal to1L
The text was updated successfully, but these errors were encountered: