summaryrefslogtreecommitdiff
path: root/test/files/neg/lubs.check
Commit message (Collapse)AuthorAgeFilesLines
* Improvement for SI-2251, failure to lub f-bounds.Paul Phillips2012-08-111-2/+7
| | | | | | | | | | | | | | | | | | | After a great struggle, I realized that the major reason that code like this still doesn't compile: List(Stream(), List()) is that we were poisoning the computed lub in mergePrefixAndArgs by throwing in Any when the max recursion depth was reached. I modified it to return NoType instead, which allowed me to teach lublist to recognize what has happened and fall back to a weaker type, one which does not contain recursive bounds. This enables the lubbing process to complete. The most elusive lub, defeated. Notice also that the refinement members are correctly parameterized on Nothing, rather than on Any as has often been the case. scala> List(Stream(), List()) res0: List[scala.collection.immutable.LinearSeq[Nothing] with scala.collection.AbstractSeq[Nothing]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.LinearSeq with scala.collection.AbstractSeq]; def reverse: scala.collection.immutable.LinearSeq[Nothing] with scala.collection.AbstractSeq[Nothing]{def companion: scala.collection.generic.GenericCompanion[scala.collection.immutable.LinearSeq with scala.collection.AbstractSeq]; def reverse: scala.collection.immutable.LinearSeq[Nothing] with scala.collection.AbstractSeq[Nothing]{def reverse: scala.collection.immutable.LinearSeq[Nothing] with scala.collection.AbstractSeq[Nothing]; def dropRight(n: Int): scala.collection.immutable.LinearSeq[Nothing] with scala.collection.AbstractSeq[Nothing]; def takeRight(n: ...
* fixed several problems with implicits. Martin Odersky2007-10-311-6/+6
| | | | | | Changed ways inner types of modules print: Module.this.Type => Module.type
* suppress "scala." prefix in string representati...Adriaan Moors2007-04-191-4/+4
| | | | | | suppress "scala." prefix in string representation of types (in error messages,..)
* added colonBurak Emir2007-01-071-3/+3
|
* fixed bugs 802 and 807 (recursive lub problems).Martin Odersky2006-11-171-0/+16
Changes system so that now an approximation of lub/glb is computed.