We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae40761 commit 9d436eaCopy full SHA for 9d436ea
compiler/src/dotty/tools/dotc/ast/tpd.scala
@@ -978,7 +978,10 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
978
}
979
980
implicit class ListOfTreeDecorator(val xs: List[tpd.Tree]) extends AnyVal {
981
- def tpes: List[Type] = xs map (_.tpe)
+ def tpes: List[Type] = xs match {
982
+ case x :: xs1 => x.tpe :: xs1.tpes
983
+ case nil => Nil
984
+ }
985
986
987
/** A trait for loaders that compute trees. Currently implemented just by DottyUnpickler. */
0 commit comments