Skip to content

Commit 12d08c9

Browse files
committed
Remove warining on erased type match
1 parent 605afc8 commit 12d08c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
764764
}
765765

766766
def typedFunctionValue(tree: untpd.Function, pt: Type)(implicit ctx: Context) = {
767-
val untpd.Function(params: List[untpd.ValDef], body) = tree
767+
val untpd.Function(params: List[untpd.ValDef] @unchecked, body) = tree
768768

769769
pt match {
770770
case pt: TypeVar if untpd.isFunctionWithUnknownParamType(tree) =>

0 commit comments

Comments
 (0)