We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d53da95 commit 199dca7Copy full SHA for 199dca7
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -446,7 +446,7 @@ object SymDenotations {
446
447
/** is this symbol a trait representing a type lambda? */
448
final def isLambdaTrait(implicit ctx: Context): Boolean =
449
- isClass && name.startsWith(tpnme.LambdaPrefix)
+ isClass && name.startsWith(tpnme.LambdaPrefix) && owner == defn.ScalaPackageClass
450
451
/** Is this symbol a package object or its module class? */
452
def isPackageObject(implicit ctx: Context): Boolean = {
0 commit comments