Skip to content

Commit ddbbb83

Browse files
committed
Fix non-spurious unchecked warning
1 parent e79ec99 commit ddbbb83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/typer/TypeAssigner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ trait TypeAssigner {
414414

415415
def assignType(tree: untpd.SeqLiteral, elems: List[Tree], elemtpt: Tree)(implicit ctx: Context) = {
416416
val ownType = tree match {
417-
case tree: JavaSeqLiteral => defn.ArrayOf(elemtpt.tpe)
417+
case tree: untpd.JavaSeqLiteral => defn.ArrayOf(elemtpt.tpe)
418418
case _ => if (ctx.erasedTypes) defn.SeqType else defn.SeqType.appliedTo(elemtpt.tpe)
419419
}
420420
tree.withType(ownType)

0 commit comments

Comments
 (0)