8000 updated error message · AYCS/scala.github.com@acc4453 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit acc4453

Browse files
committed
updated error message
1 parent 34d57c6 commit acc4453

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

overviews/collections/arrays.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ Here is some REPL interaction that uses the `evenElems` method.
104104
In both cases, the Scala compiler automatically constructed a class manifest for the element type (first, `Int`, then `String`) and passed it to the implicit parameter of the `evenElems` method. The compiler can do that for all concrete types, but not if the argument is itself another type parameter without its class manifest. For instance, the following fails:
105105

106106
scala> def wrap[U](xs: Vector[U]) = evenElems(xs)
107-
<console>:6: error: could not find implicit value for
108-
evidence parameter of type ClassManifest[U]
107+
<console>:6: error: No ClassManifest available for U.
109108
def wrap[U](xs: Vector[U]) = evenElems(xs)
110109
^
111110

0 commit comments

Comments
 (0)
0