Skip to content

Commit db935a8

Browse files
authored
Merge pull request #9559 from dotty-staging/fix-#9504
2 parents 3d70dd2 + 12fb39b commit db935a8

File tree

3 files changed

+251
-233
lines changed

3 files changed

+251
-233
lines changed

compiler/src/dotty/tools/dotc/transform/TypeUtils.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ object TypeUtils {
2121
def isPrimitiveValueType(using Context): Boolean =
2222
self.classSymbol.isPrimitiveValueClass
2323

24+
def isByName: Boolean =
25+
self.isInstanceOf[ExprType]
26+
2427
def ensureMethodic(using Context): Type = self match {
2528
case self: MethodicType => self
2629
case _ => if (ctx.erasedTypes) MethodType(Nil, self) else ExprType(self)

0 commit comments

Comments
 (0)