Skip to content

Commit 0bf9fbb

Browse files
committed
Make hasSimpleKind follow aliases
1 parent fb13bc7 commit 0bf9fbb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

compiler/src/dotty/tools/dotc/config/Config.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ object Config {
161161
final val showCompletions = false
162162

163163
/** If set, enables tracing */
164-
final val tracingEnabled = false
164+
final val tracingEnabled = true
165165

166166
/** Initial capacity of uniques HashMap.
167167
* Note: This MUST BE a power of two to work with util.HashSet

compiler/src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ class TypeApplications(val self: Type) extends AnyVal {
211211

212212
/** Is self type of kind "*"? */
213213
def hasSimpleKind(implicit ctx: Context): Boolean =
214-
typeParams.isEmpty && !self.hasAnyKind
214+
typeParams.isEmpty && !self.hasAnyKind || {
215+
val alias = self.dealias
216+
(alias ne self) && alias.hasSimpleKind
217+
}
215218

216219
/** If self type is higher-kinded, its result type, otherwise NoType.
217220
* Note: The hkResult of an any-kinded type is again AnyKind.

0 commit comments

Comments
 (0)