Skip to content

Commit

Permalink
Re-enable typechecked types part of quasiquote test suite
Browse files Browse the repository at this point in the history
It was accidentally disabled.
  • Loading branch information
densh committed Apr 20, 2014
1 parent cac6383 commit 0b72590
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/files/scalacheck/quasiquotes/TypecheckedProps.scala
@@ -1,9 +1,8 @@
import org.scalacheck._, Prop._, Gen._, Arbitrary._
import scala.reflect.runtime.universe._, Flag._, internal.reificationSupport._

object TypecheckedProps extends QuasiquoteProperties("typechecked") {


object TypecheckedProps extends QuasiquoteProperties("typechecked")
with TypecheckedTypes {
property("tuple term") = test {
val q"(..$elements)" = typecheck(q"(1, 2)")
assert(elements ≈ List(q"1", q"2"))
Expand Down Expand Up @@ -166,7 +165,7 @@ trait TypecheckedTypes { self: QuasiquoteProperties =>
}

property("applied type") = test {
val tt = typecheckTyp(q"Map[Int, Int]")
val tt = typecheckTyp(tq"Map[Int, Int]")
val tq"$tpt[..$tpts]" = tt
val tq"scala.this.Predef.Map" = tpt
val List(tq"scala.Int", tq"scala.Int") = tpts
Expand Down Expand Up @@ -205,7 +204,7 @@ trait TypecheckedTypes { self: QuasiquoteProperties =>
property("annotated type") = test {
val tq"$tpt @$annot" = typecheckTyp(tq"Int @unchecked")
val tq"scala.Int" = tpt
val q"new unchecked" = annot
val tq"unchecked" = annot
}

property("existential type") = test {
Expand Down

0 comments on commit 0b72590

Please sign in to comment.