diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-25 11:37:14 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-25 11:37:14 +0100 |
commit | de1f74990aa5321a47dd1366a1e283f2ca8a4e6f (patch) | |
tree | c2cc775b4aef6206694bb303fc1bb81e864c40d2 /src/compiler | |
parent | 9a2455aee4cfb09030ff2c2c0e6861326487e474 (diff) | |
download | scala-de1f74990aa5321a47dd1366a1e283f2ca8a4e6f.tar.gz scala-de1f74990aa5321a47dd1366a1e283f2ca8a4e6f.tar.bz2 scala-de1f74990aa5321a47dd1366a1e283f2ca8a4e6f.zip |
SI-7180 Fix regression in implicit scope of HK type alias.
We actually need to call normalize here, otherwise we don't
progress through #1 below.
[infer implicit] scala.this.Predef.implicitly[Higher[Foo.Bar]] with pt=Higher[Foo.Bar] in object Foo
1. tp=Foo.Bar tp.normalize=[A <: <?>]Foo.Bar[A] tp.dealias=Foo.Bar
2. tp=Foo.Bar[A] tp.normalize=Box[A] tp.dealias=Box[A]
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Implicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index d1cf9b1904..3bea049c59 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -1015,7 +1015,7 @@ trait Implicits { args foreach (getParts(_)) } } else if (sym.isAliasType) { - getParts(tp.dealias) + getParts(tp.normalize) // SI-7180 Normalize needed to expand HK type refs } else if (sym.isAbstractType) { getParts(tp.bounds.hi) } |