aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1590.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-10-13 18:39:42 +0200
committerMartin Odersky <odersky@gmail.com>2016-10-13 18:39:42 +0200
commit5d531ec78173b9524acd3b58485f89099dbe6991 (patch)
treeb249e848507a5b7b2705796e003bdb4cd99a23bc /tests/pos/i1590.scala
parenta45a3e5f573fc5b768fcd0d6be507a0af8fd53cc (diff)
downloaddotty-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.scala9
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]
+}