Skip to content

Commit b55423c

Browse files
committed
Add BoundedWildcardType match to Variances
This was missing, causing compiler crashes in various examples whenever a BoundedWildcardType got here.
1 parent 4448e7a commit b55423c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/scala/tools/nsc/typechecker/Variances.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trait Variances {
6565

6666
/** Compute variance of type parameter <code>tparam</code> in type <code>tp</code>. */
6767
def varianceInType(tp: Type)(tparam: Symbol): Int = tp match {
68-
case ErrorType | WildcardType | NoType | NoPrefix | ThisType(_) | ConstantType(_) =>
68+
case ErrorType | WildcardType | BoundedWildcardType(_) | NoType | NoPrefix | ThisType(_) | ConstantType(_) =>
6969
VARIANCES
7070
case SingleType(pre, sym) =>
7171
varianceInType(pre)(tparam)

0 commit comments

Comments
 (0)