object
the extends Dynamic
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
macro
def
apply[T](implicit t: T): T
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
macro
def
selectDynamic(tpeSelector: String): Any
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
An enhanced alternative to
Predef.implicitly
.Used as a term
the[T]
yields the unique implicit value of typeT
in the current implicit scope, if any. It is a compile time error if there is no such value. Its primary advantage overPredef.implicitly
is that it will preserve any refinement that the implicit definition has, resulting in more precisely typed, and hence often more useful, values,Unlike
implicitly
,the
can also be used in type position, thanks to a trick due to Denys Shabalin (@den_sh) and Eugene Burmako (@xeno_by). Here we use a combination ofselectDynamic
and backticks to embed a type in a path which appears to the compiler as stable,