Skip to content

Commit

Permalink
Workaround issue in scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki committed Jul 4, 2022
1 parent 651c0f6 commit c8b2c1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scaladoc/src/dotty/tools/scaladoc/tasty/TastyParser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ case class ScaladocTastyInspector()(using ctx: DocContext) extends DocTastyInspe

def processCompilationUnit(using Quotes)(root: reflect.Tree): Unit = ()

override def postProcess(using Quotes): Unit =
override def postProcess(using q: Quotes): Unit =
// hack into the compiler to get a list of all top-level trees
// in principle, to do this, one would collect trees in processCompilationUnit
// however, path-dependent types disallow doing so w/o using casts
Expand Down
2 changes: 1 addition & 1 deletion scaladoc/src/dotty/tools/scaladoc/tasty/reflect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ package tasty
import scala.quoted._

/** Shorthand for `quotes.reflect` */
transparent inline def reflect(using inline q: Quotes) = q.reflect
transparent inline def reflect(using q: Quotes): q.reflect.type = q.reflect

0 comments on commit c8b2c1e

Please sign in to comment.