aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t750.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t750.check')
-rw-r--r--tests/untried/neg/t750.check15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/t750.check b/tests/untried/neg/t750.check
new file mode 100644
index 000000000..c17ca334e
--- /dev/null
+++ b/tests/untried/neg/t750.check
@@ -0,0 +1,15 @@
+Test_2.scala:4: error: type mismatch;
+ found : Array[Int]
+ required: Array[? with Object]
+Note: Int >: ? with Object, but class Array is invariant in type T.
+You may wish to investigate a wildcard type such as `_ >: ? with Object`. (SLS 3.2.10)
+ AO_1.f(a)
+ ^
+Test_2.scala:5: error: type mismatch;
+ found : Array[Int]
+ required: Array[Int]
+Note: Int >: Int, but class Array is invariant in type T.
+You may wish to investigate a wildcard type such as `_ >: Int`. (SLS 3.2.10)
+ AO_1.f[Int](a)
+ ^
+two errors found