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 6c66264 commit 60824deCopy full SHA for 60824de
src/dotty/tools/backend/jvm/DottyBackendInterface.scala
@@ -267,7 +267,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
267
}.bits
268
269
270
- def isQualifierSafeToElide(qual: Tree): Boolean = false // todo: implement
+ def isQualifierSafeToElide(qual: Tree): Boolean = tpd.isIdempotentExpr(qual)
271
def getLabelDefOwners(tree: Tree): Map[Tree, List[LabelDef]] = {
272
// for each rhs of a defdef returns LabelDefs inside this DefDef
273
val res = new collection.mutable.HashMap[Tree, List[LabelDef]]()
0 commit comments