aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i1639.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/neg/i1639.scala b/tests/neg/i1639.scala
new file mode 100644
index 000000000..952cb5ed8
--- /dev/null
+++ b/tests/neg/i1639.scala
@@ -0,0 +1,10 @@
+class Bar {
+ implicit def f(implicit x: String): String = x
+
+ implicitly[String](f) // error: divergent (turn -explaintypes on to see it)
+}
+
+class Foo(implicit val bar: String) {
+ def this() = this("baz") // error: none of the alternatives match arguments
+}
+