Skip to content

Commit f532c9a

Browse files
committed
Fix #1643: Avoid crash due to previous errors
We assumed that argument types in an untpd.New are never wildcards but in the face of errors that is not true.
1 parent a55a260 commit f532c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/ast/untpd.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
282282
case TypedSplice(AppliedTypeTree(tycon, targs)) =>
283283
(TypedSplice(tycon), targs map (TypedSplice(_)))
284284
case TypedSplice(tpt1: Tree) =>
285-
val argTypes = tpt1.tpe.argTypes
285+
val argTypes = tpt1.tpe.argTypesLo
286286
val tycon = tpt1.tpe.withoutArgs(argTypes)
287287
def wrap(tpe: Type) = TypeTree(tpe) withPos tpt.pos
288288
(wrap(tycon), argTypes map wrap)

0 commit comments

Comments
 (0)