summaryrefslogtreecommitdiff
path: root/test/files/neg/t5318b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t5318b.scala')
-rw-r--r--test/files/neg/t5318b.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t5318b.scala b/test/files/neg/t5318b.scala
new file mode 100644
index 0000000000..123f8b4e04
--- /dev/null
+++ b/test/files/neg/t5318b.scala
@@ -0,0 +1,8 @@
+class DivergingImplicitReported {
+ trait TC[M]
+ trait S
+
+ implicit def tc[M](implicit M0: TC[M]): TC[S] = null
+ def breakage[F: TC] = 0
+ breakage // correct: diverging implicit expansion
+} \ No newline at end of file