File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/reflect/scala/reflect/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3558,15 +3558,15 @@ trait Types
3558
3558
*/
3559
3559
case class NamedType (name : Name , tp : Type ) extends Type {
3560
3560
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
3562
3562
}
3563
3563
/** As with NamedType, used only when calling isApplicable.
3564
3564
* Records that the application has a wildcard star (aka _*)
3565
3565
* at the end of it.
3566
3566
*/
3567
3567
case class RepeatedType (tp : Type ) extends Type {
3568
3568
override def safeToString : String = tp + " : _*"
3569
- override def mapOver (map : TypeMap ): Type = throw new UnsupportedOperationException
3569
+ override def mapOver (map : TypeMap ): Type = this
3570
3570
}
3571
3571
3572
3572
/** A temporary type representing the erasure of a user-defined value type.
You can’t perform that action at this time.
0 commit comments