aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg-with-implicits/t6567.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg-with-implicits/t6567.scala')
-rw-r--r--tests/untried/neg-with-implicits/t6567.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/neg-with-implicits/t6567.scala b/tests/untried/neg-with-implicits/t6567.scala
new file mode 100644
index 000000000..650e5e39a
--- /dev/null
+++ b/tests/untried/neg-with-implicits/t6567.scala
@@ -0,0 +1,11 @@
+class A
+class B
+
+object Test {
+ val a: A = null
+ implicit def a2b(a: A) = new B
+
+ Option[B](a)
+
+ val b: Option[B] = Option(a)
+}