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 e475f4f commit d6915a4Copy full SHA for d6915a4
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -1040,7 +1040,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
1040
1041
/** Is this a symbol that of a local val or parameterless def for which we could get the rhs */
1042
private def isBinding(sym: Symbol)(implicit ctx: Context): Boolean = {
1043
- sym.exists && !sym.is(Param) && !sym.owner.isClass &&
+ sym.isTerm && !sym.is(Param) && !sym.owner.isClass &&
1044
!(sym.is(Method) && sym.info.isInstanceOf[MethodOrPoly]) // if is a method it is parameterless
1045
}
1046
0 commit comments