Skip to content

Commit a8bc72a

Browse files
committed
Improve variable naming
1 parent e676508 commit a8bc72a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/cc/CheckCaptures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ object CheckCaptures:
171171

172172
// Check the lower bound of path dependent types.
173173
// See issue #19330.
174-
val isTypeParam = t.prefix eq NoPrefix
174+
val isMember = t.prefix eq NoPrefix
175175
t.info match
176-
case TypeBounds(lo, hi) if !isTypeParam => traverse(lo)
176+
case TypeBounds(lo, _) if !isMember => traverse(lo)
177177
case _ =>
178178
case AnnotatedType(_, ann) if ann.symbol == defn.UncheckedCapturesAnnot =>
179179
()

0 commit comments

Comments
 (0)