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
isCaseClass returns true for case object's module class #8295
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8295?orig=1 |
@gkossakowski said: |
@xeno-by said (edited on Feb 16, 2014 9:10:44 PM UTC): |
@xeno-by said: |
@xeno-by said: First, the change is too risky to be applied in the last minute (even though in the compiler noone uses isCaseClass in its weird sense). Second, immediate application of the required change (having separate isCaseClass and isCaseObject) leads to significant uglification of typical sealed case analysis (e.g. as in shapeless), because knownDirectSubclasses returns module classes for objects, which makes what currently is a simple isCaseClass check non-trivial. |
stability wins here, I think |
This doesn't make much sense, to be honest.
The text was updated successfully, but these errors were encountered: