Skip to content

Commit 0a95653

Browse files
author
EnzeXing
committed
Addressed comments
1 parent 8412f78 commit 0a95653

File tree

1 file changed

+2
-2
lines changed
  • compiler/src/dotty/tools/dotc/transform/init

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Util.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ object Util:
8181
object TypeCast:
8282
def unapply(tree: Tree)(using Context): Option[(Tree, Type)] =
8383
tree match
84-
case TypeApply(Select(qual, _), typeArg) if tree.symbol.isTypeCast =>
85-
Some(qual, typeArg.head.tpe)
84+
case TypeApply(Select(qual, _), typeArgs) if tree.symbol.isTypeCast =>
85+
Some(qual, typeArgs.head.tpe)
8686
case _ => None
8787

8888
def resolve(cls: ClassSymbol, sym: Symbol)(using Context): Symbol = log("resove " + cls + ", " + sym, printer, (_: Symbol).show):

0 commit comments

Comments
 (0)