aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i540.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i540.scala')
-rw-r--r--tests/pos/i540.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pos/i540.scala b/tests/pos/i540.scala
new file mode 100644
index 000000000..b7540ab2c
--- /dev/null
+++ b/tests/pos/i540.scala
@@ -0,0 +1,6 @@
+trait Foo extends Any
+
+object Univ {
+ def univ[T <: Foo](x: Array[T]) = {}
+ def univ2(x: Array[_ <: Foo]) = {}
+}