aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | Turn on -language:Scala2 -migration when compiling stdlibMartin Odersky2015-11-051-1/+1
| | | | | | | | needed to turn some errors into warnings.
* | Allows Iterator.scala to compile by itself.Martin Odersky2015-11-051-3/+1
| | | | | | | | Fixes #913.
* | Handle variance unsoundness in scalacMartin Odersky2015-11-051-0/+2
|/ | | | | | | | | | | | | | | | | The included test pos-special/variances-constr.scala demonstrates an unsoundness in the variance checking of scalac. Scalac excludes symbols owned by constructors from the checking. This is unsound, as can be demonstrated by compiling the test and observing output of the program run: Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at Test$.main(variances-constr.scala:17) at Test.main(variances-constr.scala) Dotty allows this code only under -language:Scala2 and issues a migration warning.
* Merge pull request #900 from dotty-staging/fix-#871odersky2015-11-051-1/+5
|\ | | | | Deal gracefully with missing return types of abstract menthods.
| * Deal gracefully with missing return types of abstract menthods.Martin Odersky2015-11-011-1/+5
| | | | | | | | | | | | | | 1) Better error message: "missing return type" instead of `=' expected. 2) Allow them under language:Scala2 Fixes #871
* | Enable <:< implicits as conversions.Martin Odersky2015-11-031-1/+1
| | | | | | | | | | | | | | | | These were disabled before, which means that having evidence of S <:< T did not introduce a usable implicit conversion from S to T. We do do it like scalac: just disable Predef.$conforms. This makes TraversableOnce compile. Fixes #914.
* | Enable compilation of Option.scalaMartin Odersky2015-11-021-1/+1
| |
* | Ouch... remove comment that broke compilation.Dmitry Petrashko2015-11-021-1/+0
| |
* | Allow empty lines in whitelist file.Dmitry Petrashko2015-11-021-0/+1
| |
* | Showcase #916Dmitry Petrashko2015-11-021-3/+7
| |
* | Showcase #915Dmitry Petrashko2015-11-021-1/+3
| |
* | Showcase #914Dmitry Petrashko2015-11-021-1/+3
| |
* | Showcase #913Dmitry Petrashko2015-11-021-1/+4
| |
* | Showcase #912Dmitry Petrashko2015-11-021-3/+6
| |
* | Showcase #911Dmitry Petrashko2015-11-021-1/+4
| |
* | Showcase #907Dmitry Petrashko2015-11-021-0/+4
| |
* | Showcase #910Dmitry Petrashko2015-11-021-4/+12
| |
* | Showcase #909Dmitry Petrashko2015-11-021-15/+30
| |
* | Compiling products forces Data races.Dmitry Petrashko2015-11-021-23/+23
| |
* | Test compiling sodlibDmitry Petrashko2015-11-022-0/+127
| |
* | Merge pull request #860 from dotty-staging/change-allow-ex-in-hkDmitry Petrashko2015-11-021-2/+1
|\ \ | |/ |/| Change allow ex in hk
| * Represent references to Scala2 inner classes as WithFixedSym typesMartin Odersky2015-10-251-1/+1
| | | | | | | | | | | | | | Reason: An inner Scala2 class might be shadowed by a same-named class in a subtype. In Dotty this is disallowed butin Scala 2 it is possible. For instance, math.Numeric and math.Ordering both have an inner class "Ops". Normal TypeRef types could not select the shadowed class in Ordering is the prefix is of type Numeric.
| * Allow existential types in hk typesMartin Odersky2015-10-241-1/+0
| |
* | Merge pull request #896 from dotty-staging/gitignoreodersky2015-10-311-0/+2
|\ \ | | | | | | Fix #895: Maintain keep file during bootstrap
| * | Fix #895: Maintain keep file during bootstrapDmitry Petrashko2015-10-311-0/+2
| |/
* | Merge pull request #886 from dotty-staging/fix-#884Guillaume Martres2015-10-301-2/+2
|\ \ | | | | | | Fix #884 - misdiagnosed ambiguous definition.
| * | Fix #884 - misdiagnosed ambiguous definition.Martin Odersky2015-10-291-2/+2
| |/ | | | | | | | | Universal equality strikes again. Caused a bug in isDefinedInCurrentUnit.
* / Don't count suppressed errorsMartin Odersky2015-10-261-2/+3
|/ | | | If an error message was supressed to count it in the total.
* Indicate that dotty is being built.Dmitry Petrashko2015-10-231-0/+1
|
* Add well-formedness checking for created symbolsMartin Odersky2015-10-221-0/+3
| | | | Enforces various restrictions of definitions.
* Fix tests to survive wellformedness checksMartin Odersky2015-10-221-3/+3
|
* Quick&dirty bootstrapDmitry Petrashko2015-10-221-0/+28
| | | | dot script now has -bootstrapped option that will use dotty-compiled-by-dotty.
* Merge pull request #821 from dotty-staging/fix-check-simple-kindedDmitry Petrashko2015-10-201-1/+1
|\ | | | | Check that some types are not higher-kinded.
| * Check that some types are not higher-kinded.Martin Odersky2015-10-071-1/+1
| | | | | | | | Invalidates #813. Review by @darkdimius.
* | Always fully define the types of lifted expressionsGuillaume Martres2015-10-191-0/+1
|/ | | | Fixes #822
* Replace withMode by addModeMartin Odersky2015-10-011-1/+1
| | | | | | withMode sets the whole mode, nit an individual bits. This was used wrongly in several places. Make this less of a trap by renaming withMode -> withModeBits.
* Matching denotations should take infos into accountMartin Odersky2015-09-291-2/+1
| | | | | | | | Whenchecking whether two denotations match it is not enough to look at the signatures. The signatures might match (on the parameters) but the actual parametre types might be different. The change always tests infos after signatures, effectively turning the signature test into a pre-filter.
* add pos_companions to the suiteSarunas Valaskevicius2015-09-251-0/+1
|
* Disallow wildcard arguments to higher-kinded types...Martin Odersky2015-09-181-0/+1
| | | | ...unless the HK type can be eta-reduced to a class type.
* Add a test that logs the classpath to pinpoint setup failures.Martin Odersky2015-09-181-0/+2
|
* Merge pull request #767 from dotty-staging/fix-#756-super-accessorsDmitry Petrashko2015-08-281-0/+1
|\ | | | | Fix #756 super accessors
| * Fix test when abstract override is needed.Martin Odersky2015-08-211-0/+1
| | | | | | | | | | There was a transcription error from scalac which caused the scope of a `!` to be wrong.
* | Make it a syntactic criterion whether a literal is a legal typeMartin Odersky2015-08-241-1/+1
| | | | | | | | | | Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be types.
* | Test other forms of singleton types.Martin Odersky2015-08-231-1/+1
| | | | | | | | | | Tested are now other numeric values, strings, booleans, which are all legal singleton types.
* | Tests of functionality.Martin Odersky2015-08-231-0/+1
|/ | | | | | As the comment in pos/singletons.scala says, we currently test only constant propagation during typer. We should also have a test that literalize produces the literals in the right places.
* Fix miniphase assembly.Martin Odersky2015-08-151-5/+5
| | | | | | | | There were two architectural errors here, which confused TreeTransforms and MiniPhases and which caused "NotDefinedHere" on transformFollowing: 1. TreeTransforms should not have idx fields, MiniPhases have them.2 2. TreeTransformers initialize arrays of MiniPhases not TreeTransforms.
* Revert "Disable -Ycheck:labelDefs"Martin Odersky2015-08-051-1/+1
| | | | This reverts commit c8afd79b4c7f145ba090a2d936d627c3ab35b1c2.
* Add LiftTry phaseMartin Odersky2015-08-051-1/+1
| | | | | Phase lifts tries that would be illegal because they execute on non-empty expression stacks.
* Disable -Ycheck:labelDefsMartin Odersky2015-08-041-1/+1
| | | | | Disable the check because if fails for desugar.scala and also in some dotty files. This test failed before the addition of NonLocalReturns.
* Merge pull request #735 from dotty-staging/ycheck-methodsodersky2015-08-041-1/+1
|\ | | | | Ycheck that methods defined in ClassInfo exist in tree.