Skip to content

Commit 39b2b5d

Browse files
committed
notes in types about naming of NMT
1 parent b9f498b commit 39b2b5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reflect/scala/reflect/internal/Types.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,8 @@ trait Types
24962496
override def isJava = true
24972497
}
24982498

2499+
// TODO: rename so it's more appropriate for the type that is for a method without argument lists
2500+
// ("nullary" erroneously implies it has an argument list with zero arguments, it actually has zero argument lists)
24992501
case class NullaryMethodType(override val resultType: Type) extends Type with NullaryMethodTypeApi {
25002502
override def isTrivial = resultType.isTrivial && (resultType eq resultType.withoutAnnotations)
25012503
override def prefix: Type = resultType.prefix

0 commit comments

Comments
 (0)