You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/src/scala/ValueOf.scala
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,10 @@ package scala
17
17
* single inhabitant. Eligible types are singleton types of the form `stablePath.type`,
18
18
* Unit and singleton types corresponding to value literals.
19
19
*
20
-
* Instances of `ValueOf[T]` are provided implicitly for all eligible types. Typically
20
+
* The value itself can conveniently be retrieved with [[Predef#valueOf]], which requires
21
+
* a `ValueOf` to be available in implicit scope.
22
+
*
23
+
* The compiler provides instances of `ValueOf[T]` for all eligible types. Typically
21
24
* an instance would be required where a runtime value corresponding to a type level
22
25
* computation is needed.
23
26
@@ -48,5 +51,5 @@ package scala
48
51
* is required in the implementation of `+` it is provided at the call site via the
49
52
* implicit argument `m` of type `ValueOf[M]`.
50
53
*/
51
-
@scala.annotation.implicitNotFound(msg ="No singleton value available for ${T}.")
54
+
@scala.annotation.implicitNotFound(msg ="No singleton value available for ${T}; eligible singleton types for `ValueOf` synthesis include literals and stable paths.")
0 commit comments