Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move threshold values to Config | Martin Odersky | 2015-05-21 | 5 | -24/+29 |
| | | | | It's a more logical home for them than the Context object. | ||||
* | Implement type beta reduction in lookupRefined | Martin Odersky | 2015-05-21 | 1 | -14/+44 |
| | | | | lookupRefined now reduces fully instantiated lambdas. | ||||
* | Generaize canWiden to classBounds | Martin Odersky | 2015-05-21 | 2 | -11/+16 |
| | | | | | This gives us a cheap way to bound the search of all baseclasses in testLifted. | ||||
* | Rename for clarity | Martin Odersky | 2015-05-21 | 1 | -4/+4 |
| | |||||
* | Add test case for higher-kinded operations on collections | Martin Odersky | 2015-05-21 | 1 | -0/+52 |
| | | | | The test case that caused all previous commits in this branch. | ||||
* | Fix DenotationNotDefinedHere in pattern matcher | Martin Odersky | 2015-05-21 | 3 | -3/+5 |
| | | | | | This was uncovered by previous commit "Fix isSubType bug ...". Also removed two redundants ".fresh" calls in "fresh.addMode". | ||||
* | Fix isSubType bug related to testLifted | Martin Odersky | 2015-05-21 | 2 | -7/+9 |
| | | | | | | | testLifted widened a type to an some base type constructor when comparing with a type lambda. This can return false positives if the widened type is on the right of the comparison. The fix adds a parameter to testLifted indicating whether widening is permitted. | ||||
* | Specialize printing of Lambda abstractions. | Martin Odersky | 2015-05-21 | 2 | -1/+82 |
| | | | | | | | | Use the proposed Lambda syntax [HK$0, ..., HK$n] => body for them. | ||||
* | Fix error in derivedTypeAlias | Martin Odersky | 2015-05-21 | 1 | -1/+1 |
| | | | | Need to generate new type if variance differs from old one. | ||||
* | Harden isLambdaArgName | Martin Odersky | 2015-05-21 | 1 | -2/+8 |
| | | | | | | Previously we could have returned true here yet a subsequent lambdaArgIndex would fail with a Numberformat error. This scenario is prevented now. | ||||
* | Shorten lambda arguments to HK$ | Martin Odersky | 2015-05-21 | 1 | -1/+1 |
| | | | | ... makes diagnostics more legible. | ||||
* | Add "Printing" mode | Martin Odersky | 2015-05-21 | 3 | -2/+5 |
| | | | | | | | | | | | Idea: when printing, we should be more lenient about conditions that would otherwise cause an assertion failure, because we want to avoid triggering further assertions while diagnosing previous errors. As a start we generalize an assertion that RefinedTypes cannot be created after erasure. This gets triggered when playing around with printing lambdas at erasure time (see following commit): erasure runs at phase erasure + 1, so ctx.erasedTypes is true, but we might still want to print lambdas then, and printing lambdas will create new refined types as of next commit. | ||||
* | Make normalizeToRef survive annotated types | Martin Odersky | 2015-05-21 | 3 | -6/+7 |
| | | | | Did not handle this case before. | ||||
* | Disallow {...} arguments for annotations | Martin Odersky | 2015-05-21 | 3 | -3/+16 |
| | | | | | This mimics scalac's behavior (but not the official syntax; in fact the official syntax seems to be ambiguous. | ||||
* | Allow AnnotatedType in operands of `with`. | Martin Odersky | 2015-05-21 | 2 | -16/+21 |
| | | | | Brings in line with Scala 2 spec. | ||||
* | Merge pull request #589 from smarter/fix/trait-init-name | Dmitry Petrashko | 2015-05-21 | 2 | -2/+3 |
|\ | | | | | TraitConstructors: Use a valid method name for the initializer (fix #577) | ||||
| * | TraitConstructors: Use a valid method name for the initializer (fix #577) | Guillaume Martres | 2015-05-21 | 2 | -2/+3 |
| | | |||||
* | | Merge pull request #572 from dotty-staging/fix/#569-newRefArray | Dmitry Petrashko | 2015-05-21 | 1 | -4/+14 |
|\ \ | | | | | | | Fix/#569 new ref array | ||||
| * | | Fix comment | Martin Odersky | 2015-05-21 | 1 | -1/+1 |
| | | | |||||
| * | | Better fix for $569 | Martin Odersky | 2015-05-21 | 1 | -7/+13 |
| | | | | | | | | | | | | | | | We now provide a ndew symbol for the `newRefArray` definition, which makes any further treatment after erasure unnecessary. | ||||
| * | | Fix #569 - newRefArray | Martin Odersky | 2015-05-21 | 1 | -2/+6 |
| |/ | | | | | | | | | newRefArray needs to be treated specially at and after erasure because it is the only source-defined method that's still polymoprhic. | ||||
* | | Merge pull request #590 from smarter/fix/lifted-inner-uses-this | Dmitry Petrashko | 2015-05-21 | 3 | -1/+27 |
|\ \ | |/ |/| | Fix #580: use isContainedIn to support cases where the enclosing class is also the top-level class | ||||
| * | Fix #580: use isContainedIn to support cases where the enclosing class is ↵ | Guillaume Martres | 2015-05-21 | 3 | -1/+27 |
|/ | | | | also the top-level class | ||||
* | Merge pull request #591 from dotty-staging/scala-infra | odersky | 2015-05-20 | 8 | -3/+41 |
|\ | | | | | Make dotty use scala-infra for CI. | ||||
| * | Add -e to bash options in scripts. | Dmitry Petrashko | 2015-05-20 | 3 | -0/+6 |
| | | | | | | | | See discussion in #591 | ||||
| * | Run builds in parallel on the same machine. | Dmitry Petrashko | 2015-05-20 | 4 | -3/+4 |
| | | | | | | | | Allows sbts not to lock on the same ivy cache. | ||||
| * | Disable byNameVarargs. Kills JVM. | Dmitry Petrashko | 2015-05-20 | 1 | -0/+0 |
| | | |||||
| * | Move `scala/scala` sources to ./scala/ from ../scala/ | Dmitry Petrashko | 2015-05-20 | 3 | -3/+3 |
| | | | | | | | | Needed for scala-infra. | ||||
| * | Integrating with scala-infra for CI. | Dmitry Petrashko | 2015-05-20 | 4 | -0/+31 |
|/ | | | | See https://github.com/scala/scala-jenkins-infra/pull/56 | ||||
* | Merge pull request #584 from smarter/fix/isUnbox | Dmitry Petrashko | 2015-05-18 | 4 | -12/+24 |
|\ | | | | | Fix null unboxing of primitives (fixes #582) | ||||
| * | Fix null unboxing of primitives (fixes #582) | Guillaume Martres | 2015-05-18 | 4 | -12/+24 |
|/ | | | | | Erasure#isUnbox was incorrect: the unbox methods are defined on the value classes, not the boxed classes. | ||||
* | Merge pull request #574 from dotty-staging/fix/#568 | Dmitry Petrashko | 2015-05-15 | 1 | -1/+2 |
|\ | | | | | Make Child annotation lazy | ||||
| * | Make Child annotation lazy | Martin Odersky | 2015-05-15 | 1 | -1/+2 |
| | | | | | | | | | | | | | | Otherwise we get bootstrap problems when trying to compile Child: Completing Predef with the Scala2Unpickler causes Child annotations to be added to parents of case classes. But completing Child would depend on completion of Predef. Making child annotations lazy avoids the cycle. | ||||
* | | Merge pull request #575 from dotty-staging/fix/#566 | Dmitry Petrashko | 2015-05-15 | 2 | -3/+7 |
|\ \ | |/ |/| | As i566 shows, it is possible to have a package as prefix, a package | ||||
| * | As i566 shows, it is possible to have a package as prefix, a package | Martin Odersky | 2015-05-15 | 2 | -3/+7 |
|/ | | | | | | | | | | object as owner and be followed by type arguments: reflect.classTag[T] expands to reflect.`package`.classTag[T] | ||||
* | Merge pull request #558 from dotty-staging/run-tests | Dmitry Petrashko | 2015-05-15 | 3387 | -27/+93299 |
|\ | | | | | Add run tests to pending. | ||||
| * | Fix i499 test. fails due to #546 | Dmitry Petrashko | 2015-05-13 | 1 | -4/+3 |
| | | |||||
| * | Use LegacyApp in run tests. | Dmitry Petrashko | 2015-05-13 | 902 | -959/+902 |
| | | |||||
| * | Introduce LegacyApp to simplify porting run tests. #559 | Dmitry Petrashko | 2015-05-13 | 1 | -0/+9 |
| | | |||||
| * | Partest command line options (same as scala) useable from sbt | vsalvis | 2015-05-13 | 2 | -8/+15 |
| | | |||||
| * | Run partest directory as whole by default. | Dmitry Petrashko | 2015-05-13 | 2 | -15/+21 |
| | | |||||
| * | Running rewrite tool on run tests. | Dmitry Petrashko | 2015-05-13 | 731 | -1786/+2131 |
| | | |||||
| * | Run tests as they were in scala. | Dmitry Petrashko | 2015-05-12 | 3383 | -0/+92963 |
| | | |||||
* | | Merge pull request #565 from retronym/topic/cleanups | Dmitry Petrashko | 2015-05-15 | 47 | -119/+112 |
|\ \ | | | | | | | Fix typos, scaladoc tags, and some minor code smells. | ||||
| * | | Fix an ironic typo in the typo fixing commit | Jason Zaugg | 2015-05-14 | 1 | -1/+1 |
| | | | |||||
| * | | val is redundant for case class parameters. | Jason Zaugg | 2015-05-14 | 2 | -2/+2 |
| | | | |||||
| * | | Remove redundant parentheses. | Jason Zaugg | 2015-05-14 | 3 | -18/+18 |
| | | | |||||
| * | | Fix a few Scaladoc warnings | Jason Zaugg | 2015-05-14 | 3 | -5/+5 |
| | | | |||||
| * | | Correct a large number of typos. | Jason Zaugg | 2015-05-14 | 42 | -85/+85 |
| | | | | | | | | | | | | | | | I scanned the main sources with IntellIJ's spell checker and corrected what showed up. | ||||
| * | | Fix parameter name in Scaladoc. | Jason Zaugg | 2015-05-14 | 1 | -1/+1 |
| | | |