aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1211 from dotty-staging/fix-#1202odersky2016-04-161-15/+7
|\ | | | | Fix Tasty errors
| * Update TASTY tests for dotty/srcVladimirNik2016-04-131-14/+3
| |
| * Rearrange pickle testsMartin Odersky2016-04-091-1/+4
| | | | | | | | | | | | | | 1) Move passing test to pickling 2) Add test case for #1212 in pending 3) Disable annotations/internal in pickling tests. They lead to a stable symbol error which is explainable (modifiers are read before symbol is created).
* | Fix issues with `enterBlock` for comment parsingFelix Mulder2016-04-111-0/+30
| |
* | Add commandline argument `-Ykeep-comments` to remove hardcodingFelix Mulder2016-04-071-0/+2
| |
* | Add binding between Symbol and Untyped tree in base contextFelix Mulder2016-04-072-37/+72
| | | | | | | | This commit also adds a printer for use by dottydoc.
* | Change tests to be based on JUnit, rename comments variableFelix Mulder2016-04-072-506/+454
| |
* | Add docstring support for types, vals, vars and defsFelix Mulder2016-04-071-4/+137
| |
* | Fix association of docstrings based on posisitionFelix Mulder2016-04-071-1/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes errors that would've occurred in this situation: ``` /** Docstring 1 */ <- this one would've been chosen /** Docstring 2 */ /** Docstring 3 */ class Class ``` And this situation: ``` /** Docstring 1 */ trait Trait /** Docstring 2 */ <- this one would've been chosen ```
* | Add package object supportFelix Mulder2016-04-071-2/+93
| |
* | Add ability to parse nested classes/traits docstringsFelix Mulder2016-04-071-1/+47
| |
* | Fix traits w/o bodies not getting the correct docstringFelix Mulder2016-04-071-4/+32
| |
* | Add tests for classes and traitsFelix Mulder2016-04-072-2/+160
|/
* Drop Mode.scala from tasty_typer testMartin Odersky2016-04-011-1/+1
| | | | File was moved, it's no longer in package typer.
* Move Mode to coreMartin Odersky2016-04-012-2/+2
| | | | | Mode is used from a lot of low-level code, does not just reflect Typer info. So it makes more sense top to place it in the core package.
* Fix build.Dmitry Petrashko2016-03-311-2/+2
|
* Merge pull request #1182 from dotty-staging/repl-fixesodersky2016-03-313-1/+65
|\ | | | | Repl fixes and tests
| * Add docs to TestREPLMartin Odersky2016-03-181-0/+8
| |
| * Move all overridable bits into Config classMartin Odersky2016-03-181-15/+14
| | | | | | | | | | | | Central config class replaces mixture of parameters and fields. The fields were in part in the wrong class, where they could not easily be overridden.
| * Add REPL testsMartin Odersky2016-03-183-1/+58
| |
* | TASTY tests for src/dottyVladimirNik2016-03-241-10/+78
|/
* Merge pull request #1166 from dotty-staging/fix-#1136odersky2016-03-181-2/+2
|\ | | | | Fix typing of SeqLiterals
| * Add second field to SeqLiteralMartin Odersky2016-03-101-2/+2
| | | | | | | | | | | | | | The field keeps track of the element type. This is necessary because JavaSeqLiteral is nonvariant and the elements might be empty, so we cannot always compute the type from the element types.
* | Polish rewrite testMartin Odersky2016-03-121-3/+3
| | | | | | | | Remove println; add docs
* | Rewrite testMartin Odersky2016-03-122-1/+19
|/ | | | Test rewritings that were implemented so far.
* Merge pull request #1126 from sjrd/scalajsDmitry Petrashko2016-03-041-1/+1
|\ | | | | Initial infrastructure and hello world for the Scala.js back-end.
| * Store the JSDefinitions in a custom platform SJSPlatform.Sébastien Doeraene2016-03-011-1/+1
| | | | | | | | | | | | This required the ability to instantiate a different `Platform` depending on settings, which, in turn, required to defer the initialization of `ContextBase.platform`.
* | Neg tests: change val computeFilePathsAndExpErrors to defVladimirNik2016-03-031-3/+3
| |
* | Neg tests: remove negTest flag; neg tests are binded to neg directoryVladimirNik2016-03-032-53/+46
| |
* | Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-032-121/+81
| |
* | Merge pull request #1111 from dotty-staging/fix-#1099Dmitry Petrashko2016-03-021-1/+0
|\ \ | |/ |/| Special case pattern matching against abstract types with class tags
| * Remove bogus testMartin Odersky2016-02-201-1/+0
| | | | | | | | | | Tests failures were caused by previous incomplete implementation of classTag.
* | Add a `dotty-interfaces` packageGuillaume Martres2016-02-282-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We introduce a new entry point for the compiler in `dotty.tools.dotc.Driver`: ``` def process(args: Array[String], simple: interfaces.SimpleReporter, callback: interfaces.CompilerCallback): interfaces.ReporterResult ``` Except for `args` which is just an array, the argument types and return type of this method are Java interfaces defined in a new package called `dotty-interfaces` which has a stable ABI. This means that you can programmatically run a compiler with a custom reporter and callbacks without having to recompile it against every version of dotty: you only need to have `dotty-interfaces` present at compile-time and call the `process` method using Java reflection. See `test/test/InterfaceEntryPointTest.scala` for a concrete example. This design is based on discussions with the IntelliJ IDEA Scala plugin team. Thanks to Nikolay Tropin for the discussions and his PR proposal (see #1011).
* | Merge pull request #1112 from dotty-staging/value-classes-private-this-paramDmitry Petrashko2016-02-201-1/+1
|\ \ | |/ |/| Value classes: add support for private[this] parameter
| * fix to neg_valueClasses testVladimirNik2016-02-191-1/+1
| |
* | Merge pull request #1066 from dotty-staging/fix-#997odersky2016-02-191-0/+2
|\ \ | | | | | | Fix #997
| * | Fix expected error countMartin Odersky2016-02-191-1/+1
| | |
| * | Add checking for leaking private definitionsMartin Odersky2016-02-191-0/+2
| |/ | | | | | | First version. Fixes #997.
* | Merge pull request #1072 from dotty-staging/change-isVolatile-2odersky2016-02-191-0/+1
|\ \ | |/ |/| Change is volatile 2
| * Allow Named Arguments in TypeArgsMartin Odersky2016-02-191-1/+1
| | | | | | | | Lets one also pass named arguments to methods.
| * Check named type params for welformedness rules.Martin Odersky2016-02-191-0/+1
| |
* | Merge pull request #1106 from dotty-staging/neg-linesDmitry Petrashko2016-02-191-3/+133
|\ \ | |/ |/| Neg tests check files for // error markers (rebased and updated)
| * Neg tests: filename checking updatedVladimirNik2016-02-181-1/+1
| |
| * Restructured JUnit neg testsvsalvis2016-02-181-50/+107
| |
| * Negtests (JUnit only) check that each error line has a // errorvsalvis2016-02-181-3/+76
| |
* | Merge pull request #898 from dotty-staging/add/auto-uncurryodersky2016-02-181-0/+1
|\ \ | |/ |/| Implement auto tupling of function arguments
| * Strengthen requirement for auto-tuplingMartin Odersky2016-02-161-1/+1
| | | | | | | | | | | | | | Was: corresponding parameter types "are compatible". Now: corresponding parameter types "conform". This avoids the inconsistency mentioned by @retronym in #897.
| * Auto-uncurry n-ary functions.Martin Odersky2016-02-161-0/+1
| | | | | | | | Implements SIP #897.
* | Add checks for value classes:VladimirNik2016-02-161-0/+1
|/ | | | | 1. Add errors in case of incorrect parameter; 2. Improvement to error message if value class is defined as a local class;
* Merge pull request #1076 from dotty-staging/fix/run-tests-memoryDmitry Petrashko2016-02-122-2/+11
|\ | | | | partest: run tests with -Xms64M -Xmx1024M instead of JVM defaults