aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/sensitive2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/sensitive2.scala')
-rw-r--r--tests/untried/neg-with-implicits/sensitive2.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/sensitive2.scala b/tests/untried/neg-with-implicits/sensitive2.scala
new file mode 100644
index 000000000..e0cf515bd
--- /dev/null
+++ b/tests/untried/neg-with-implicits/sensitive2.scala
@@ -0,0 +1,8 @@
+object Test {
+ class Foo[A](z: A)
+ implicit def foo1[A](a: A): Foo[A] = new Foo(a)
+ implicit def foo2(a: Any): Foo[String] = new Foo("123")
+
+ val a: Foo[_] = "abc"
+
+}