File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,6 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
129
129
def JavaSeqLiteral (elems : List [Tree ])(implicit ctx : Context ): SeqLiteral =
130
130
ta.assignType(new untpd.JavaSeqLiteral (elems), elems)
131
131
132
-
133
132
def TypeTree (original : Tree )(implicit ctx : Context ): TypeTree =
134
133
TypeTree (original.tpe, original)
135
134
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ trait TypeAssigner {
324
324
325
325
def assignType (tree : untpd.SeqLiteral , elems : List [Tree ])(implicit ctx : Context ) = tree match {
326
326
case tree : JavaSeqLiteral =>
327
- tree.withType(defn.ArrayClass .typeRef.appliedTo (ctx.typeComparer.lub(elems.tpes)))
327
+ tree.withType(defn.ArrayType (ctx.typeComparer.lub(elems.tpes).widen ))
328
328
case _ =>
329
329
val ownType =
330
330
if (ctx.erasedTypes) defn.SeqType
You can’t perform that action at this time.
0 commit comments