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 432e829 commit 24080f1Copy full SHA for 24080f1
compiler/src/dotty/tools/dotc/transform/CheckUnused.scala
@@ -512,13 +512,11 @@ object CheckUnused:
512
* Checks if import selects a def that is transparent and inline
513
*/
514
private def isTransparentAndInline(imp: tpd.Import)(using Context): Boolean =
515
- (for {
516
- sel <- imp.selectors
517
- } yield {
+ imp.selectors.exists { sel =>
518
val qual = imp.expr
519
val importedMembers = qual.tpe.member(sel.name).alternatives.map(_.symbol)
520
importedMembers.exists(s => s.is(Transparent) && s.is(Inline))
521
- }).exists(identity)
+ }
522
523
/**
524
* Heuristic to detect synthetic suffixes in names of symbols
0 commit comments