aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Applications.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-16 16:04:14 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-17 11:02:03 +0200
commit37c6e42cfd04c62c504a9143cb2cc4b500baf38b (patch)
treefffdafaaa27501c49ce40512b7f3b79ba485f4f1 /src/dotty/tools/dotc/typer/Applications.scala
parentace968dabf8e02f725f7b77cde90f64988a7b326 (diff)
downloaddotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.tar.gz
dotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.tar.bz2
dotty-37c6e42cfd04c62c504a9143cb2cc4b500baf38b.zip
Fixed problem with missing denotations in polyDefDef
Problem was reported by @darkdimius. Test case will come in next commit.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index 99bb82844..242985b57 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -767,8 +767,7 @@ trait Applications extends Compatibility { self: Typer =>
*/
def isAsSpecific(alt1: TermRef, tp1: Type, alt2: TermRef, tp2: Type): Boolean = ctx.traceIndented(i"isAsSpecific $tp1 $tp2", overload) { tp1 match {
case tp1: PolyType =>
- def bounds(tparamRefs: List[TypeRef]) = tp1.paramBounds map (_.substParams(tp1, tparamRefs))
- val tparams = ctx.newTypeParams(alt1.symbol, tp1.paramNames, EmptyFlags, bounds)
+ val tparams = ctx.newTypeParams(alt1.symbol, tp1.paramNames, EmptyFlags, tp1.instantiateBounds)
isAsSpecific(alt1, tp1.instantiate(tparams map (_.typeRef)), alt2, tp2)
case tp1: MethodType =>
def repeatedToSingle(tp: Type) = if (tp.isRepeatedParam) tp.argTypesHi.head else tp