We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd49eb6 commit b3c6071Copy full SHA for b3c6071
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -505,13 +505,11 @@ object CheckUnused:
505
* Checks if import selects a def that is transparent and inline
506
*/
507
private def isTransparentAndInline(imp: tpd.Import)(using Context): Boolean =
508
- (for {
509
- sel <- imp.selectors
510
- } yield {
+ imp.selectors.exists { sel =>
511
val qual = imp.expr
512
val importedMembers = qual.tpe.member(sel.name).alternatives.map(_.symbol)
513
importedMembers.exists(s => s.is(Transparent) && s.is(Inline))
514
- }).exists(identity)
+ }
515
516
/**
517
* Heuristic to detect synthetic suffixes in names of symbols
0 commit comments