aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/cycles.scala
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1072 from dotty-staging/change-isVolatile-2odersky2016-02-191-6/+7
|\ | | | | Change is volatile 2
| * Annotate test with // error indicationsMartin Odersky2016-02-191-6/+7
| | | | | | | | | | We had same fleyness in number of errors of cycle.scala which prompted this.
* | Negtests with // error commentsvsalvis2016-02-181-4/+4
|/
* Big realizability refactoringMartin Odersky2016-02-091-2/+2
| | | | | | | Move logic from TypeOps to new file CheckRealizable.scala. Also check realizable fields under strict mode. Check at phase PostTyper rather than Typer to avoid cycles. New tests for imports and deep paths.
* Reorganize tests to account for new typing of projectionMartin Odersky2016-02-091-5/+5
| | | | | | Tests with failed projections are moved to pos-scala2, which was renamed from pos-special. Files in pos-scala2 are compiled with -language:Scala2 option.
* Use isRealizable to identify stable prefixesMartin Odersky2016-02-091-9/+9
| | | | | | | Replaces isVolatile, which is too weak (and more complicated). Backwards compatibility with Scala2 is ensured by dropping the requirement in Scala2 mode. Fixes #1047, which now compiles without inifinite recursion.
* No volatile check needed for strict vals.Martin Odersky2016-02-091-9/+9
|
* Fixed cycle detection.Martin Odersky2014-11-241-0/+13
| | | | Now detects the cycles reported by @retronym
* Detect cycles involving types bounded by singleton typesGuillaume Martres2014-11-061-0/+25
| | | | This fixes #193.
* Detect cycles and protected legal ones with LazyRefsMartin Odersky2014-08-081-0/+4
Cycles are now detected early, when an info is first completed. Legal, f-bounded cycles are broken by a LazyRef, which will construct its type lazily. This makes checkBounds validation of AppliedTypeTrees work (in FirstTransform). Formerly, this stackoverflowed despite the laziness precautions in findMember. Todo: Do the same for class files coming from Java and Scala 2.x.