diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-04 16:44:16 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-04 16:54:17 -0800 |
commit | 777dbd70f5bc3e903a55aa18f4268adeb8a03084 (patch) | |
tree | 6dedd98e68f8abfd30592eb4a85e41745436ab98 /test/files/run/lub-visibility.check | |
parent | f708b87e559a6402205c9c9d8b2b62ee324fc148 (diff) | |
download | scala-777dbd70f5bc3e903a55aa18f4268adeb8a03084.tar.gz scala-777dbd70f5bc3e903a55aa18f4268adeb8a03084.tar.bz2 scala-777dbd70f5bc3e903a55aa18f4268adeb8a03084.zip |
Revert attempt to limit private types in lubs.
Has to be somewhere more directly tied to structural
refinements. See run/lub-visibility.scala before/after
output for motivation. Closes SI-5534.
Diffstat (limited to 'test/files/run/lub-visibility.check')
-rw-r--r-- | test/files/run/lub-visibility.check | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/lub-visibility.check b/test/files/run/lub-visibility.check new file mode 100644 index 0000000000..3461d1bf6b --- /dev/null +++ b/test/files/run/lub-visibility.check @@ -0,0 +1,14 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> // should infer List[scala.collection.immutable.Seq[Nothing]] + +scala> // but reverted that for SI-5534. + +scala> val x = List(List(), Vector()) +x: List[scala.collection.immutable.Seq[Nothing] with scala.collection.AbstractSeq[Nothing]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.Seq with scala.collection.AbstractSeq{def dropRight(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def takeRight(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def drop(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def take(n: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]; def slice(from: Int,until: Int): scala.collection.immutable.Seq[Any] with scala.collection.AbstractSeq[Any]}]; def dropRight(n: Int): scala.collection.immutable.Seq[Nothing] with scala.collection.Ab... +scala> + +scala> |