Skip to content

No ClassTag available for Nothing #4163

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

Closed
allanrenucci opened this issue Mar 23, 2018 · 1 comment
Closed

No ClassTag available for Nothing #4163

allanrenucci opened this issue Mar 23, 2018 · 1 comment

Comments

@allanrenucci
Copy link
Contributor

class Test {
  Array()
}
-- Error: tests/allan/Test.scala:2:9 -------------------------------------------
2 |  Array()
  |         ^
  |         No ClassTag available for Nothing

It compiles with Scalac

@smarter
Copy link
Member

smarter commented Mar 23, 2018

ClassTag[Nothing] can be used manually if you really want it but is not found by implicit search anymore because it's unsound, see #1730

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

2 participants