From f532c9acb9aef9a93f52109c320ea5c944de46bc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 5 Nov 2016 15:43:53 +0100 Subject: 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. --- src/dotty/tools/dotc/ast/untpd.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/ast/untpd.scala b/src/dotty/tools/dotc/ast/untpd.scala index ac3beaff4..f259bdc57 100644 --- a/src/dotty/tools/dotc/ast/untpd.scala +++ b/src/dotty/tools/dotc/ast/untpd.scala @@ -282,7 +282,7 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo { case TypedSplice(AppliedTypeTree(tycon, targs)) => (TypedSplice(tycon), targs map (TypedSplice(_))) case TypedSplice(tpt1: Tree) => - val argTypes = tpt1.tpe.argTypes + val argTypes = tpt1.tpe.argTypesLo val tycon = tpt1.tpe.withoutArgs(argTypes) def wrap(tpe: Type) = TypeTree(tpe) withPos tpt.pos (wrap(tycon), argTypes map wrap) -- cgit v1.2.3