diff options
Diffstat (limited to 'test/files/run/classtags_contextbound.scala')
-rw-r--r-- | test/files/run/classtags_contextbound.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/run/classtags_contextbound.scala b/test/files/run/classtags_contextbound.scala new file mode 100644 index 0000000000..5bb0ae8d80 --- /dev/null +++ b/test/files/run/classtags_contextbound.scala @@ -0,0 +1,5 @@ +object Test extends App { + def mkArray[T: ClassTag] = Array[T]() + def foo[T: ClassTag] = mkArray[T] + println(foo[Int].getClass) +}
\ No newline at end of file |