From 7b0f0a142bb526f4bd108a8c208ec9a8952398c9 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 4 Jun 2012 13:53:13 +0200 Subject: repairs the tests after the refactoring spree --- .../neg/interop_concretetypetags_arenot_classtags.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/neg/interop_concretetypetags_arenot_classtags.scala (limited to 'test/files/neg/interop_concretetypetags_arenot_classtags.scala') diff --git a/test/files/neg/interop_concretetypetags_arenot_classtags.scala b/test/files/neg/interop_concretetypetags_arenot_classtags.scala new file mode 100644 index 0000000000..74e51e8a7a --- /dev/null +++ b/test/files/neg/interop_concretetypetags_arenot_classtags.scala @@ -0,0 +1,12 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.{ClassTag, classTag} + +object Test extends App { + def concreteTypeTagIsnotClassTag[T: ConcreteTypeTag] = { + println(classTag[T]) + } + + concreteTypeTagIsnotClassTag[Int] + concreteTypeTagIsnotClassTag[String] + concreteTypeTagIsnotClassTag[Array[Int]] +} \ No newline at end of file -- cgit v1.2.3