Skip to content

Commit 4545f3a

Browse files
authored
Merge pull request #6866 from dotty-staging/move-typeChecks-macro-to-compiletime
Move typeChecks macro to compiletime package
2 parents 1beb55f + e715f4f commit 4545f3a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

library/src-bootstrapped/scala/testing/typeChecks.scala renamed to library/src-bootstrapped/scala/compiletime/testing/typeChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scala.testing
1+
package scala.compiletime.testing
22

33
import scala.quoted._
44

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package scala.testing
1+
package scala.compiletime.testing
22

33
inline def typeChecks(inline code: String): Boolean =
44
scala.compiletime.error("Cannot expand typeChecks while bootstrapping the compiler")

tests/run-with-compiler/reflect-inline/test_2.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ object Test {
44
def main(args: Array[String]): Unit = {
55
val a: String = "5"
66
assert(typeChecks("|1 + 1".stripMargin))
7-
assert(scala.testing.typeChecks("|1 + 1".stripMargin))
7+
assert(scala.compiletime.testing.typeChecks("|1 + 1".stripMargin))
88
assert(("|3 + " + a).stripMargin == "3 + 5")
99
}
1010
}

tests/run-with-compiler/scala-tests-typeChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import scala.testing._
1+
import scala.compiletime.testing._
22

33
object Test {
44

0 commit comments

Comments
 (0)