Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
isPackage returns true for package classes #6732
The API docs say that isPackage should imply isTerm, which makes sense. However, in 2.10-RC2, isPackage returns true for both packages and package classes, which are not terms.
Example repro code:
Something should give. In my opinion, the public API docs make more sense than the current behavior, so change the implementation. Have isPackage return false for package classes.
Imported From: https://issues.scala-lang.org/browse/SI-6732?orig=1
On the compiler side there is isModuleOrModuleClass. I thought there was an isPackageOrPackageClass, but I don't see it now.