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

companion expansion through macro annotation stop working in scaladoc compile 2.13-M4 #11045

Closed
kailuowang opened this issue Jul 31, 2018 · 4 comments

Comments

@kailuowang
Copy link

Example project created here:
https://github.com/kailuowang/simulacrum_213

It uses simulacrum’s @typeclass annotation which expands the companion with some extra methods.

@typeclass
trait TC[A]

object TC {
  implicit val stingTC: TC[String] = null
}

object Test {
  val c = TC[String] //fails on `sbt doc` on 2.13.0-M4
}

It works fine in sbt compile, it also works fine on sbt doc on Scala 2.12

cc @mpilquist

@SethTisue
Copy link
Member

error:

[error] /Users/tisue/simulacrum_213/src/main/scala/example/Test.scala:13:13: object TC does not take type parameters.
[error]   val c = TC[String] //fails on `sbt doc` on 2.13.0-M4
[error]             ^

@SethTisue
Copy link
Member

SethTisue commented Aug 2, 2018

a smaller reproducer is:

@simulacrum.typeclass trait TC[A]
object Test { TC }

as with the longer example, it compiles, but there is an error when doc is run:

[error] /Users/tisue/simulacrum_213/src/main/scala/example/Test.scala:2:15: not found: value TC
[error] object Test { TC }
[error]               ^

@SethTisue
Copy link
Member

@adriaanm orange alert in macro paradise wing

@adriaanm adriaanm self-assigned this Aug 2, 2018
@adriaanm adriaanm modified the milestones: 2.13.0-M5, 2.13.0-RC1 Aug 8, 2018
@Atry
Copy link

Atry commented Aug 12, 2018

Related to typelevel/simulacrum#82

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