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

handle recursion in type tags #5881

Closed
scabug opened this Issue Jun 5, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Jun 5, 2012

Welcome to Scala version 2.10.0-20120604-160250-507be3e3dd.

scala> implicitly[ClassTag[List[T forSome {type T <: List[T]}]]]
<console>:8: error: exception during macro expansion: null
              implicitly[ClassTag[List[T forSome {type T <: List[T]}]]]
                        ^

scala> implicitly[ClassTag[List[Any]]]
res3: ClassTag[List[Any]] = ClassTag[class scala.collection.immutable.List]

I'd expect a valid ClassTag in both cases, not just the second.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jun 5, 2012

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jun 7, 2012

@xeno-by said:
Works fine with https://github.com/scalamacros/kepler/tree/nightly/2012-06-08.

I guess that's because I pretty much redesigned tag generation during the reflection refactoring.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Jun 9, 2012

@xeno-by said:
Fixed in scala/scala@6355d1a

@scabug scabug closed this Jun 9, 2012

@scabug scabug added this to the 2.10.0-M3 milestone Apr 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment