diff options
author | Martin Odersky <odersky@gmail.com> | 2015-12-11 14:39:41 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-12-11 14:39:41 +0100 |
commit | 88f24efb2858f46c146214bc7e51f5de17c31bc0 (patch) | |
tree | 111c8eff2a48d6373cddca4a9f1acd075c2afe84 /src/dotty/tools/dotc/core/Types.scala | |
parent | b8e05d5b955de664e4a5872f43c8184014cecf05 (diff) | |
download | dotty-88f24efb2858f46c146214bc7e51f5de17c31bc0.tar.gz dotty-88f24efb2858f46c146214bc7e51f5de17c31bc0.tar.bz2 dotty-88f24efb2858f46c146214bc7e51f5de17c31bc0.zip |
Allow bottom types as hk type arguments
Fixes problem raised in #966.
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index b5d5c864b..a7c457d8f 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -1517,7 +1517,7 @@ object Types { // After substitution we might end up with a type like // `C { type hk$0 = T0; ...; type hk$n = Tn } # $Apply` // where C is a class. In that case we eta expand `C`. - derivedSelect(prefix.EtaExpandCore) + derivedSelect(prefix.EtaExpandCore(this.prefix.typeConstructor.typeParams)) } else newLikeThis(prefix) } |