diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-03-08 13:53:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 13:53:55 +0100 |
commit | c84480960cf618c29705dbaab9332d304a081524 (patch) | |
tree | 5e0eaa03bb816ab2c7fa21897f5caf201005f88d /tests/pos | |
parent | 3c4d29eabaa71c30ccc2c7b62517d771d6f9d8f5 (diff) | |
parent | a2b3bc17271a59f4d0f690fd46f3328c55ab06cb (diff) | |
download | dotty-c84480960cf618c29705dbaab9332d304a081524.tar.gz dotty-c84480960cf618c29705dbaab9332d304a081524.tar.bz2 dotty-c84480960cf618c29705dbaab9332d304a081524.zip |
Merge pull request #2062 from dotty-staging/fix/scala-reflect-dep
Remove most uses of scala-reflect jar
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/contextbounds-implicits-new.scala | 10 | ||||
-rw-r--r-- | tests/pos/spec-doubledef-new.scala | 30 | ||||
-rw-r--r-- | tests/pos/t8187.scala | 6 |
3 files changed, 0 insertions, 46 deletions
diff --git a/tests/pos/contextbounds-implicits-new.scala b/tests/pos/contextbounds-implicits-new.scala deleted file mode 100644 index 8389d1332..000000000 --- a/tests/pos/contextbounds-implicits-new.scala +++ /dev/null @@ -1,10 +0,0 @@ -import scala.reflect.runtime.universe._ - -/* Tests implicit parameters in the presence of context bounds. - * See Section 7.4 of the Scala Language Specification. - */ -class C { - - def f[T: TypeTag, S: TypeTag](x: T, y: S)(implicit p: C): Unit = { } - -} diff --git a/tests/pos/spec-doubledef-new.scala b/tests/pos/spec-doubledef-new.scala deleted file mode 100644 index de438d6e9..000000000 --- a/tests/pos/spec-doubledef-new.scala +++ /dev/null @@ -1,30 +0,0 @@ -import scala.reflect.runtime.universe._ - -object Test { - def fn[@specialized T, @specialized U](t : T => Int, u : U => Int) : T = - null.asInstanceOf[T] -} - -trait A[@specialized(Int) T] { - var value: T - def getWith[@specialized(Int) Z](f: T => Z) = f(value) -} - -class C extends A[Int] { - var value = 10 - override def getWith[@specialized(Int) Z](f: Int => Z) = f(value) -} - -abstract class B[T, @specialized(scala.Int) U : TypeTag, @specialized(scala.Int) V <% Ordered[V]] { - val u: U - val v: V - - def f(t: T, v2: V): Tuple2[U, V] = { - val m: Array[U] = null - if (m.isEmpty) { - (u, v) - } else { - (u, v2) - } - } -} diff --git a/tests/pos/t8187.scala b/tests/pos/t8187.scala deleted file mode 100644 index 84b8cd0f4..000000000 --- a/tests/pos/t8187.scala +++ /dev/null @@ -1,6 +0,0 @@ -import scala.reflect.runtime.universe._ - -object Test extends App { - val tyn: TypeName = (??? : TypeSymbol).name - val ten: TermName = (??? : TermSymbol).name -} |