From 1fbea3499b010de2daef045408f11835bddded30 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 24 Dec 2013 12:34:23 +0100 Subject: Dropping redundant treatment of constructors in selectionType. Constructors are handled anyway in computeNPMembersNamed --- src/dotty/tools/dotc/typer/Typer.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 730314bda..a6fca2a58 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -72,9 +72,7 @@ class Typer extends Namer with Applications with Implicits { /** The type of a selection with `name` of a tree with type `site`. */ def selectionType(site: Type, name: Name, pos: Position)(implicit ctx: Context): Type = { - val refDenot = - if (name == nme.CONSTRUCTOR) site.decl(name) - else site.member(name) + val refDenot = site.member(name) if (reallyExists(refDenot)) site.select(name, refDenot) else { if (!site.isErroneous) -- cgit v1.2.3