diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-23 16:15:46 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-23 16:16:14 +0200 |
commit | 7b8000914abe73883052b1d8af356f91cc133806 (patch) | |
tree | eca9fd3178e13c65c61dd9ff19f7953c11814a21 /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 66a176bea94205469851fdb4fab46c2589fba407 (diff) | |
download | dotty-7b8000914abe73883052b1d8af356f91cc133806.tar.gz dotty-7b8000914abe73883052b1d8af356f91cc133806.tar.bz2 dotty-7b8000914abe73883052b1d8af356f91cc133806.zip |
Fixes expansion and general handling of pattern defs.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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) |