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

non-uniform treatment of Nothing continues to bother #5505

Open
scabug opened this issue Feb 19, 2012 · 1 comment
Open

non-uniform treatment of Nothing continues to bother #5505

scabug opened this issue Feb 19, 2012 · 1 comment
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Feb 19, 2012

scala> implicitly[Manifest[List[String]]]
res15: Manifest[List[String]] = scala.collection.immutable.List[java.lang.String]

scala> implicitly[Manifest[List[Nothing]]]
res16: Manifest[List[Nothing]] = scala.collection.immutable.List[Nothing]

scala> def f[T, M[_]](x: M[T])(implicit m: Manifest[M[T]]) = m
f: [T, M[_]](x: M[T])(implicit m: Manifest[M[T]])Manifest[M[T]]

scala> f(List[String]())
res18: Manifest[List[String]] = scala.collection.immutable.List[java.lang.String]

scala> f(List[Nothing]())
<console>:33: error: No Manifest available for List[T].
              f(List[Nothing]())
               ^

I actually have all the Nothing related bugs (except this one - I assume this one too, but I haven't checked) fixed in a branch, but I'm still experimenting with variations of the approach.

@scabug
Copy link
Author

scabug commented Feb 19, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5505?orig=1
Reporter: @paulp
See #4982

@scabug scabug added the typer label Apr 7, 2017
@scabug scabug added this to the Backlog milestone Apr 7, 2017
@adriaanm adriaanm removed their assignment Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants