Skip to content

Commit

Permalink
Merge pull request #68 from larsrh/topic/visibility
Browse files Browse the repository at this point in the history
relax visibility of Dotty macros
  • Loading branch information
Avasil authored Nov 15, 2020
2 parents 3331112 + df5bcd6 commit 8c13eea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shared/src/main/scala-3/minitest/macros/CompileMacros.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import scala.compiletime.testing._

import minitest.api.{AssertionException, SourceLocation}

private object CompileMacros {
object CompileMacros {
inline def doesNotCompile(inline code: String, expected: Option[String], pos: SourceLocation): Unit = {
val errors = typeCheckErrors(code)
if (errors.isEmpty)
Expand All @@ -22,7 +22,7 @@ private object CompileMacros {
}
}

private[minitest] trait CompileMacros {
trait CompileMacros {
inline def assertDoesNotCompile(inline code: String)(implicit pos: SourceLocation): Unit =
CompileMacros.doesNotCompile(code, Option.empty, pos)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import scala.quoted._

import minitest.api.SourceLocation

private object SourceLocationMacros {
object SourceLocationMacros {
def impl()(using ctx: QuoteContext): Expr[SourceLocation] = {
import qctx.tasty._
val path = rootPosition.sourceFile.jpath
Expand All @@ -19,7 +19,7 @@ private object SourceLocationMacros {
}
}

private[minitest] trait SourceLocationMacros {
trait SourceLocationMacros {
inline implicit def fromContext: SourceLocation =
${ SourceLocationMacros.impl() }
}

0 comments on commit 8c13eea

Please sign in to comment.