diff --git a/shared/src/main/scala/squants/Dimension.scala b/shared/src/main/scala/squants/Dimension.scala index d3aa55d2..28bcd832 100644 --- a/shared/src/main/scala/squants/Dimension.scala +++ b/shared/src/main/scala/squants/Dimension.scala @@ -82,6 +82,8 @@ trait Dimension[A <: Quantity[A]] { case None ⇒ Failure(QuantityParseException(s"Unable to identify $name unit ${symbol}", s"(${Platform.crossFormat(num.toDouble(value))},${symbol})")) } } + + implicit val dimensionImplicit: Dimension[A] = this } case class QuantityParseException(message: String, expression: String) extends Exception(s"$message:$expression")