aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/t8024.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/t8024.scala')
-rw-r--r--tests/untried/neg-with-implicits/t8024.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/t8024.scala b/tests/untried/neg-with-implicits/t8024.scala
new file mode 100644
index 000000000..b4c2c5ebb
--- /dev/null
+++ b/tests/untried/neg-with-implicits/t8024.scala
@@ -0,0 +1,14 @@
+package p
+
+trait NRoot[A]
+
+object `package` {
+ final def sqrt(x: Double): Double = Math.sqrt(x)
+ final def sqrt[A](a: A)(implicit ev: NRoot[A]): A = ???
+}
+
+object FastComplex {
+ import java.lang.Math.sqrt
+
+ sqrt(0d)
+}