Skip to content

Commit f9700b1

Browse files
committed
catch two more exhaustive issue in compiler
1 parent 54a7df8 commit f9700b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ object SymDenotations {
16781678
case tp @ AppliedType(tycon, args) =>
16791679
val subsym = tycon.typeSymbol
16801680
if (subsym eq symbol) tp
1681-
else tycon.typeParams match {
1681+
else (tycon.typeParams: @unchecked) match {
16821682
case LambdaParam(_, _) :: _ =>
16831683
baseTypeOf(tp.superType)
16841684
case tparams: List[Symbol @unchecked] =>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ object Types {
26742674
* either a list of type parameter symbols or a list of lambda parameters
26752675
*/
26762676
def integrate(tparams: List[ParamInfo], tp: Type)(implicit ctx: Context): Type =
2677-
tparams match {
2677+
(tparams: @unchecked) match {
26782678
case LambdaParam(lam, _) :: _ => tp.subst(lam, this)
26792679
case params: List[Symbol @unchecked] => tp.subst(params, paramRefs)
26802680
}

0 commit comments

Comments
 (0)