diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-17 19:35:17 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-18 09:23:38 +0100 |
commit | 00283e6d8dfb9d884e9598b96fb7b3b5f5600ee3 (patch) | |
tree | 8253a467fdefb0179f90dce49ecaa437daf9ed6c /test/files/run | |
parent | afecfe90cd98a657ce83f3e833c940518563064e (diff) | |
download | scala-00283e6d8dfb9d884e9598b96fb7b3b5f5600ee3.tar.gz scala-00283e6d8dfb9d884e9598b96fb7b3b5f5600ee3.tar.bz2 scala-00283e6d8dfb9d884e9598b96fb7b3b5f5600ee3.zip |
makes sure compat._ provides full compatibility with 2.10.x
This is extremely important to enable cross-versioning Scala 2.10 codebases
against Scala 2.11 using Jason's trick with:
// TODO 2.11 Remove this after dropping 2.10.x support.
private object HasCompat { val compat = ??? }; import HasCompat._
def impl(c: Context)(...): ... = {
import c.universe._
import compat._
...
}
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/reflection-tags.scala | 1 | ||||
-rw-r--r-- | test/files/run/t8190.scala | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/reflection-tags.scala b/test/files/run/reflection-tags.scala index 21ff2c0efb..3d7c7b2a0a 100644 --- a/test/files/run/reflection-tags.scala +++ b/test/files/run/reflection-tags.scala @@ -7,6 +7,7 @@ object Test extends App { typeMembers = typeMembers.filter(_.name != TypeName("Importer")) // deprecated typeMembers = typeMembers.filter(_.name != TypeName("Internal")) // internal typeMembers = typeMembers.filter(_.name != TypeName("Compat")) // internal + typeMembers = typeMembers.filter(_.name != TypeName("BuildApi")) // deprecated val tags = typeOf[scala.reflect.api.Universe].members.filter(sym => sym.isImplicit).toList typeMembers.foreach(_.info) diff --git a/test/files/run/t8190.scala b/test/files/run/t8190.scala index d61fa8c01c..17ff83c714 100644 --- a/test/files/run/t8190.scala +++ b/test/files/run/t8190.scala @@ -113,6 +113,7 @@ object Test extends App with Overloads { types = types.filter(_ != "Importer") // deprecated types = types.filter(_ != "Internal") // internal types = types.filter(_ != "Compat") // internal + types = types.filter(_ != "BuildApi") // deprecated val diff = types.toList diff buf.toList println("uncovered type members: " + diff) } |