8000 make neg/names-defaults-neg.scala work · scala/scala@27e38bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 27e38bf

Browse files
committed
make neg/names-defaults-neg.scala work
1 parent b1f0a40 commit 27e38bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3558,15 +3558,15 @@ trait Types
35583558
*/
35593559
case class NamedType(name: Name, tp: Type) extends Type {
35603560
override def safeToString: String = name.toString +": "+ tp
3561-
override def mapOver(map: TypeMap): Type = throw new UnsupportedOperationException
3561+
override def mapOver(map: TypeMap): Type = this
35623562
}
35633563
/** As with NamedType, used only when calling isApplicable.
35643564
* Records that the application has a wildcard star (aka _*)
35653565
* at the end of it.
35663566
*/
35673567
case class RepeatedType(tp: Type) extends Type {
35683568
override def safeToString: String = tp + ": _*"
3569-
override def mapOver(map: TypeMap): Type = throw new UnsupportedOperationException
3569+
override def mapOver(map: TypeMap): Type = this
35703570
}
35713571

35723572
/** A temporary type representing the erasure of a user-defined value type.

0 commit comments

Comments
 (0)
0