aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t7629-view-bounds-deprecation.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t7629-view-bounds-deprecation.check')
-rw-r--r--tests/untried/neg/t7629-view-bounds-deprecation.check11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg/t7629-view-bounds-deprecation.check b/tests/untried/neg/t7629-view-bounds-deprecation.check
new file mode 100644
index 000000000..ed77c15c5
--- /dev/null
+++ b/tests/untried/neg/t7629-view-bounds-deprecation.check
@@ -0,0 +1,11 @@
+t7629-view-bounds-deprecation.scala:2: warning: View bounds are deprecated. Use an implicit parameter instead.
+Example: Instead of `def f[A <% Int](a: A)` use `def f[A](a: A)(implicit ev: A => Int)`.
+ def f[A <% Int](a: A) = null
+ ^
+t7629-view-bounds-deprecation.scala:3: warning: View bounds are deprecated. Use an implicit parameter instead.
+Example: Instead of `def f[A <% Int](a: A)` use `def f[A](a: A)(implicit ev: A => Int)`.
+ def g[C, B <: C, A <% B : Numeric](a: A) = null
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+two warnings found
+one error found