diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-13 18:39:42 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-13 18:39:42 +0200 |
commit | 5d531ec78173b9524acd3b58485f89099dbe6991 (patch) | |
tree | b249e848507a5b7b2705796e003bdb4cd99a23bc /tests/pos/i1590.scala | |
parent | a45a3e5f573fc5b768fcd0d6be507a0af8fd53cc (diff) | |
download | dotty-5d531ec78173b9524acd3b58485f89099dbe6991.tar.gz dotty-5d531ec78173b9524acd3b58485f89099dbe6991.tar.bz2 dotty-5d531ec78173b9524acd3b58485f89099dbe6991.zip |
Refinement of interpolation direction
Diffstat (limited to 'tests/pos/i1590.scala')
-rw-r--r-- | tests/pos/i1590.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/i1590.scala b/tests/pos/i1590.scala index a8f36de45..ab922c218 100644 --- a/tests/pos/i1590.scala +++ b/tests/pos/i1590.scala @@ -1 +1,10 @@ case class W[T](seq: Option[Option[T]] = Option.empty) +object W { + def apply[T] = new W[T]() +} + +case class V[T](vv: W[W[T]] = W.apply) +object Test { + W[Int]() + // V[Int]() fails in scalac and dotty: both instantiate the vv-default to W[Nothing] +} |