aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/TypeApplications.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-01-18 17:49:22 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-19 14:00:01 +0100
commita553296a6d32e062eed498241ae99bcc61c58529 (patch)
tree6a8f92965bd44a190991e77598a3f8089a602ddf /src/dotty/tools/dotc/core/TypeApplications.scala
parent66924f4f1e4111edcce530cc383fc1eb894a342c (diff)
downloaddotty-a553296a6d32e062eed498241ae99bcc61c58529.tar.gz
dotty-a553296a6d32e062eed498241ae99bcc61c58529.tar.bz2
dotty-a553296a6d32e062eed498241ae99bcc61c58529.zip
Fix review comment in previous PR
Was not fixed by accident then, so we do it here now.
Diffstat (limited to 'src/dotty/tools/dotc/core/TypeApplications.scala')
-rw-r--r--src/dotty/tools/dotc/core/TypeApplications.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/TypeApplications.scala b/src/dotty/tools/dotc/core/TypeApplications.scala
index 4726a16bb..8f8a7dbdd 100644
--- a/src/dotty/tools/dotc/core/TypeApplications.scala
+++ b/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -244,8 +244,7 @@ class TypeApplications(val self: Type) extends AnyVal {
else tsym.infoOrCompleter match {
case completer: TypeParamsCompleter =>
val tparams = completer.completerTypeParams(tsym)
- if (tsym.isClass) tparams
- else defn.LambdaTrait(tparams.map(_.variance)).typeParams
+ defn.LambdaTrait(tparams.map(_.variance)).typeParams
case _ =>
if (!tsym.isCompleting || tsym.isAliasType) tsym.info.typeParams
else