diff options
author | Stewart Stewart <stewinsalot@gmail.com> | 2016-10-11 10:51:25 -0400 |
---|---|---|
committer | Stewart Stewart <stewinsalot@gmail.com> | 2016-10-11 17:12:00 -0400 |
commit | 1702e1c44c45e36e2d6d289ef1b7d703f65ec422 (patch) | |
tree | 2a981d44063337cdf10af4a2cbd7a8db013f7426 /src/main/scala/com/drivergrp/core/core.scala | |
parent | aa86b5b239f29bb7b4191c5da728a87a8a6b2623 (diff) | |
download | driver-core-1702e1c44c45e36e2d6d289ef1b7d703f65ec422.tar.gz driver-core-1702e1c44c45e36e2d6d289ef1b7d703f65ec422.tar.bz2 driver-core-1702e1c44c45e36e2d6d289ef1b7d703f65ec422.zip |
implicit from companion of type alias not visible (SI-9770)
Diffstat (limited to 'src/main/scala/com/drivergrp/core/core.scala')
-rw-r--r-- | src/main/scala/com/drivergrp/core/core.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/scala/com/drivergrp/core/core.scala b/src/main/scala/com/drivergrp/core/core.scala index 1697884..158447f 100644 --- a/src/main/scala/com/drivergrp/core/core.scala +++ b/src/main/scala/com/drivergrp/core/core.scala @@ -25,20 +25,19 @@ package object core { type Id[+Tag] = Long @@ Tag object Id { - implicit def idEqual[T]: Equal[Id[T]] = Equal.equal[Id[T]](_ == _) - implicit def idOrdering[T]: Ordering[Id[T]] = Ordering.by(i => i: Long) - def apply[Tag](value: Long) = value.asInstanceOf[Id[Tag]] } + implicit def idEqual[T]: Equal[Id[T]] = Equal.equal[Id[T]](_ == _) + implicit def idOrdering[T]: Ordering[Id[T]] = Ordering.by(i => i: Long) type Name[+Tag] = String @@ Tag object Name { - implicit def nameEqual[T]: Equal[Name[T]] = Equal.equal[Name[T]](_ == _) - implicit def nameOrdering[T]: Ordering[Name[T]] = Ordering.by(n => n: String) - def apply[Tag](value: String) = value.asInstanceOf[Name[Tag]] } + implicit def nameEqual[T]: Equal[Name[T]] = Equal.equal[Name[T]](_ == _) + implicit def nameOrdering[T]: Ordering[Name[T]] = Ordering.by(n => n: String) + object revision { final case class Revision[T](id: String) |