From 7b8000914abe73883052b1d8af356f91cc133806 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 23 Aug 2013 16:15:46 +0200 Subject: Fixes expansion and general handling of pattern defs. --- src/dotty/tools/dotc/typer/Typer.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/typer/Typer.scala') diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index c693209f4..8bd5c6975 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -754,7 +754,7 @@ class Typer extends Namer with Applications with Implicits { cpy.Typed(tree, arg1, TypeTree(ownType)) withType ownType } - def typedPackageDef(tree: untpd.PackageDef)(implicit ctx: Context): Tree = { + def typedPackageDef(tree: untpd.PackageDef)(implicit ctx: Context): Tree = { val pid1 = typedExpr(tree.pid, AnySelectionProto) val pkg = pid1.symbol val packageContext = @@ -845,7 +845,7 @@ class Typer extends Namer with Applications with Implicits { val imp1 = typed(imp) buf += imp1 traverse(rest)(importContext(imp1.symbol, imp.selectors)) - case (mdef: untpd.MemberDef) :: rest => + case (mdef: untpd.DefTree) :: rest => expandedTree remove mdef match { case Some(xtree) => traverse(xtree :: rest) -- cgit v1.2.3