diff options
Diffstat (limited to 'test/files/neg/t6567.scala')
-rw-r--r-- | test/files/neg/t6567.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t6567.scala b/test/files/neg/t6567.scala new file mode 100644 index 0000000000..650e5e39ae --- /dev/null +++ b/test/files/neg/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) +} |