Skip to content

By-name ClassTag not found #6828

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
nicolasstucki opened this issue Jul 9, 2019 · 0 comments
Closed

By-name ClassTag not found #6828

nicolasstucki opened this issue Jul 9, 2019 · 0 comments

Comments

@nicolasstucki
Copy link
Contributor

minimized code

class Foo {
  inline def foo[T](implicit ct: =>scala.reflect.ClassTag[T]): Unit = Unit
  foo[Int]
  foo[String]
}
-- Error: Foo.scala:3:10 -------------------------------------------------------
3 |  foo[Int]
  |          ^
  |          No ClassTag available for Int
-- Error: Foo.scala:4:13 -------------------------------------------------------
4 |  foo[String]
  |             ^
  |             No ClassTag available for String

expectation

It should compile

nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jul 9, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jul 15, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jul 15, 2019
nicolasstucki added a commit to dotty-staging/dotty that referenced this issue Jul 16, 2019
nicolasstucki added a commit that referenced this issue Jul 22, 2019
Fix #6828: Support by-name synthesized implicits
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

1 participant