Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions compiler/src/dotty/tools/dotc/transform/TypeUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ object TypeUtils {
def isPrimitiveValueType(using Context): Boolean =
self.classSymbol.isPrimitiveValueClass

def isByName: Boolean =
self.isInstanceOf[ExprType]

def ensureMethodic(using Context): Type = self match {
case self: MethodicType => self
case _ => if (ctx.erasedTypes) MethodType(Nil, self) else ExprType(self)
Expand Down
Loading