Skip to content

Commit 4218120

Browse files
olhotaknoti0na1
authored andcommitted
simplify unusableForInterface
1 parent a6f565c commit 4218120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ object Types {
373373
case AppliedType(tycon, args) => tycon.unusableForInference || args.exists(_.unusableForInference)
374374
case RefinedType(parent, _, rinfo) => parent.unusableForInference || rinfo.unusableForInference
375375
case TypeBounds(lo, hi) => lo.unusableForInference || hi.unusableForInference
376-
case tp: FlexibleType => tp.underlying.unusableForInference || tp.lo.unusableForInference
376+
case FlexibleType(underlying) => underlying.unusableForInference
377377
case tp: AndOrType => tp.tp1.unusableForInference || tp.tp2.unusableForInference
378378
case tp: LambdaType => tp.resultType.unusableForInference || tp.paramInfos.exists(_.unusableForInference)
379379
case WildcardType(optBounds) => optBounds.unusableForInference

0 commit comments

Comments
 (0)