Skip to content

Commit 7f7d83f

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent e6c7f27 commit 7f7d83f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ object ProtoTypes {
179179
bound.isProvisional && hasUnknownMembers(bound)
180180
} && hasUnknownMembers(tp.info.loBound)
181181
}
182-
case tp: TypeVar =>
183-
!tp.isInstantiated && hasUnknownMembers(TypeComparer.bounds(tp.origin).lo)
182+
case tp: TypeVar if !tp.isInstantiated =>
183+
hasUnknownMembers(TypeComparer.bounds(tp.origin).lo)
184184
case tp: AppliedType => hasUnknownMembers(tp.tycon) || hasUnknownMembers(tp.superType)
185185
case tp: TypeProxy => hasUnknownMembers(tp.superType)
186186
// It woukd make sense to also include And/OrTypes, but that leads to

0 commit comments

Comments
 (0)