aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t7788.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t7788.scala')
-rw-r--r--tests/untried/pos/t7788.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/pos/t7788.scala b/tests/untried/pos/t7788.scala
new file mode 100644
index 000000000..c97cb34ce
--- /dev/null
+++ b/tests/untried/pos/t7788.scala
@@ -0,0 +1,8 @@
+class Test {
+ // Predef used to define a method `conforms` to produce the implicit evidence below
+ // all this does is ensure we don't rename Predef.$conforms back to conforms when $ goes out of fashion
+ // or that there is some other way of generating the implicit value that witnesses T => U for T <: U
+ def conforms(x: Int, y: Int) = x < y
+ def foo[A](implicit ev: Int => A) = ???
+ foo[Int]
+}