diff options
Diffstat (limited to 'src/dotty/tools/dotc/typer/Inferencing.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Inferencing.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Inferencing.scala b/src/dotty/tools/dotc/typer/Inferencing.scala index 7a8b94571..2137981e7 100644 --- a/src/dotty/tools/dotc/typer/Inferencing.scala +++ b/src/dotty/tools/dotc/typer/Inferencing.scala @@ -28,7 +28,7 @@ object Inferencing { */ def isCompatible(tp: Type, pt: Type)(implicit ctx: Context): Boolean = ( (tp <:< pt) - || pt.typeSymbol == defn.ByNameParamClass && (tp <:< pt.typeArgs.head) + || (pt isRef defn.ByNameParamClass) && (tp <:< pt.typeArgs.head) || viewExists(tp, pt)) } |