We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70d59b commit 96cca21Copy full SHA for 96cca21
tests/pos/i4742.scala
@@ -0,0 +1,6 @@
1
+import scala.reflect.ClassTag
2
+
3
+class Test {
4
+ def foo[T <: String: ClassTag](f: T => Int) = 1
5
+ def bar(f: String => Int) = foo(f)
6
+}
0 commit comments