Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Manifest Available for String #13102

Closed
romainreuillon opened this issue Jul 19, 2021 · 4 comments
Closed

No Manifest Available for String #13102

romainreuillon opened this issue Jul 19, 2021 · 4 comments

Comments

@romainreuillon
Copy link

Compiler version

[reuillon:~/Projects/gridscale] master(+63/-57,1) ± scala3-repl --version Scala code runner version 3.0.1 -- Copyright 2002-2021, LAMP/EPFL

Minimized code

manifest[String]

Output

1 |manifest[String]
  |                ^
  |                No Manifest available for String.

Expectation

A manifest for the type String

@Kordyjan
Copy link
Contributor

For now, there is no support for summoning Manifest instances in scala 3. As a workaround for most use cases, you can use ClassTag.

@Kordyjan
Copy link
Contributor

Also, there was a discussion under #9482, which is sort of relevant.

@bishabosha
Copy link
Member

We could keep this open as #9482 is about summoning OptManifest, this is for summoning Manifest, or we keep one?

@smarter
Copy link
Member

smarter commented Jul 19, 2021

let's close in favor of #9482, if we can do one we can do the other.

As a workaround for most use cases, you can use ClassTag.

In fact it's more than a workaround, please treat Manifest as deprecated and use ClassTag instead.

@smarter smarter closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants