aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/implicitDefs.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/neg/implicitDefs.scala b/tests/neg/implicitDefs.scala
new file mode 100644
index 000000000..28ac32656
--- /dev/null
+++ b/tests/neg/implicitDefs.scala
@@ -0,0 +1,11 @@
+package test
+
+import dotty._
+import Predef.{any2stringadd => _, StringAdd => _, _}
+
+object implicitDefs {
+
+ implicit val x = 2
+ implicit def y(x: Int) = 3
+ implicit def z(a: x.type): String = ""
+}