Skip to content
Open
Changes from all 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
4 changes: 2 additions & 2 deletions src/main/scala/TMap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class TMap[+T] private(private val values: List[(Type, Any)]) {
Concatenate two TMaps.
Elements of the left one override
*/
def ++[S](other: TMap[S])
= new TMap[T with S](other.values ++ values)
def ++[S](other: TMap[S])(implicit tt: TypeTag[S])
= new TMap[T with S](other.values ++ values.filterNot(_._1 <:< tt.tpe))

override def toString = "TMap("+values.toString+")"
}
Expand Down