diff options
Diffstat (limited to 'test/files/pos/generic-sigs.scala')
-rw-r--r-- | test/files/pos/generic-sigs.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/generic-sigs.scala b/test/files/pos/generic-sigs.scala new file mode 100644 index 0000000000..4822cfcfb0 --- /dev/null +++ b/test/files/pos/generic-sigs.scala @@ -0,0 +1,7 @@ +object A { + def f1 = List(classOf[Int], classOf[String]) + def f2 = List(classOf[String], classOf[Int]) + def f3(x: Class[_ <: Int]) = x + def f4(x: Class[_ <: String with Int]) = x + def f5(x: Class[_ <: Int with String]) = x +}
\ No newline at end of file |