Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Disallow existentially bound parameters as type parameters | Martin Odersky | 2015-12-06 | 1 | -0/+1 |
| | | | | | | | Done in order to keep the basics as simple as possible. Treating existentially bound parameters as still instantiatable type parameters does not seem to add anything fundamental, and makes the type system less regular. | ||||
* | Merge pull request #979 from dotty-staging/fix/hk-deep-subtype-2 | odersky | 2015-12-06 | 1 | -3/+1 |
|\ | | | | | TypeComparer: delay looking up members of AndTypes | ||||
| * | TypeComparer: delay looking up members of AndTypes | Guillaume Martres | 2015-11-30 | 1 | -3/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In ParFactory.scala we have checks that look like: (Foo { type Bar = X }) & (Foo { type Bar = X }) <:< (Foo { type Bar = X }) where `Foo` is a recursive type. Before this commit, we would first try to check this by looking up `Bar` in the `AndType` on the left, which means looking it up in both branches and then merging the result, but the merge requires more subtyping checks, which in turn require looking up a member inside an `AndType`, seemingly ad infinitum. We now avoid this by checking if either branch of the `AndType` on the left is a subtype of the `RefinedType` on the right before looking up a member in the `AndType` itself. | ||||
* | | Merge pull request #988 from smarter/fix/compile-Seq | odersky | 2015-12-05 | 1 | -2/+1 |
|\ \ | | | | | | | Reduce the amount of typing in Namer, fixes compiling Seq | ||||
| * | | Compile scala.collection.Seq without double-binding error | Guillaume Martres | 2015-12-01 | 1 | -2/+1 |
| |/ | | | | | | | | | | | | | | | | | | | | | This commit fixes two issues which caused us to complete Seq too early and read it from the classpath instead of from the sources: - Evaluting RepeatedParamClass forced Seq, this is not necessary because the type of RepeatedParamClass is a LazyType - TypeErasure#sigName on a Scala type always forced Seq, even if the type is not a repeated param type. This fixes #980. | ||||
* | | Indicate regex used for filtering out benchmarks. | Dmitry Petrashko | 2015-12-02 | 1 | -1/+1 |
| | | |||||
* | | Add tests for dotc.core pickling/unpickling | VladimirNik | 2015-12-02 | 1 | -0/+13 |
| | | |||||
* | | Removed tasty_dotc_reporting test due to issue #986 | VladimirNik | 2015-12-01 | 1 | -1/+1 |
|/ | |||||
* | Add pickling/unpickling of stable modifier | VladimirNik | 2015-11-27 | 1 | -0/+1 |
| | | | | | Pickling/unpickling of STABLE modifier allows to fix problem with unpickling of path-dependent types (#982) | ||||
* | Update whitelist with more files that compile | Guillaume Martres | 2015-11-25 | 1 | -12/+15 |
| | | | | | Thanks to the previous commit, more files now compile without deep subtyping errors. | ||||
* | isSubtype: try to dealias TypeRefs before recursively checking the prefixes | Guillaume Martres | 2015-11-25 | 1 | -6/+3 |
| | | | | | | | As demonstrated by tests/pos/hk-deep-subtype.scala, we can avoid some deep subtype recursions that result in stack overflows by doing this. Fix #943. | ||||
* | New tests for tasty | VladimirNik | 2015-11-20 | 1 | -0/+7 |
| | |||||
* | Fixed != comparison | Simon Hafner | 2015-11-20 | 1 | -1/+1 |
| | | | | | | By linter: comparing values of types Char and String using `!=' will always yield true | ||||
* | Add one more passing filt to whitelist | Martin Odersky | 2015-11-17 | 1 | -1/+1 |
| | |||||
* | Add test case | Martin Odersky | 2015-11-17 | 1 | -1/+1 |
| | |||||
* | Merge pull request #950 from dotty-staging/fix-#916 | odersky | 2015-11-17 | 1 | -5/+4 |
|\ | | | | | Adapt type parameters of typed eta expansion according to expected variances | ||||
| * | Fix problems arising when hierarchies of classes are under completion | Martin Odersky | 2015-11-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix problems arising when hierarchies of classes are under completion at the same time. In this case it can happen that we see a subclass (e.g. Arrays.scala) which depends on a superclass (e.g. GenTraversableLike.scala) that itself does not have its parents defined yet. Previously, several things went wrong here - One of the base classes would be marked as frozen, even though it dod not have all members entered yet. This led to an error in finger printing. - The baseclasses and super class bits of the subclass would be computed before the parents of the middle class were known. The baseclasses would then be chached, leading to false results for isDerivedFrom. We need to refine the logic for computing base classes, super class bits, and fingerprints to account for that issue. | ||||
| * | Eta expand according to expected type parameter variance | Martin Odersky | 2015-11-17 | 1 | -4/+3 |
| | | | | | | | | | | | | | | When eta expanding a type `C` to `[vX] => C[X]` the variance `v` is now the variance of the expected type, not the variance of the type constructor `C`, as long as the variance of the expected type is compatible with the variance of `C`. | ||||
* | | scala-collections.whitelist: remove stray 'x' that broke the test | Guillaume Martres | 2015-11-17 | 1 | -1/+1 |
| | | |||||
* | | Add ArrayBuilder to whitelist | Martin Odersky | 2015-11-17 | 1 | -1/+3 |
| | | |||||
* | | Add file to scala-collections-whitelist | Martin Odersky | 2015-11-17 | 1 | -1/+1 |
|/ | | | | | This witnesses that #945 is fixed (by pushing a fix to the Scala file to dotty-library). | ||||
* | Enable more parts of whitelist | Martin Odersky | 2015-11-16 | 1 | -4/+4 |
| | |||||
* | Flag trailing `_' following non-function as an error | Martin Odersky | 2015-11-16 | 1 | -0/+1 |
| | | | | | | | | If `x` is not a function or method, then `x _` should be disallowed. scalac accepts this and converts it to () => x instead. I'd like to drop this because it's unnecessary and non-obvious. If -language:Scala2 is on, the behavior is like Scala 2's but a migration warning is issued. | ||||
* | Remove leftover empty lines | Dmitry Petrashko | 2015-11-10 | 1 | -10/+0 |
| | |||||
* | Change diagnosis of GenericTraversableTemplate.scala. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+1 |
| | |||||
* | This cyclic ref is fixed. | Dmitry Petrashko | 2015-11-10 | 1 | -6/+2 |
| | |||||
* | Tailrec bug is fixed. | Dmitry Petrashko | 2015-11-10 | 1 | -42/+14 |
| | |||||
* | Revert "Check that Iterator.scala compiles on jenkins." | Dmitry Petrashko | 2015-11-10 | 2 | -5/+4 |
| | | | | This reverts commit 05e47a4ac03cad65932a5bbddf506b91e6604f38. | ||||
* | Add more generic classes that compile | Dmitry Petrashko | 2015-11-10 | 1 | -0/+12 |
| | |||||
* | More deep subtype failures. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+14 |
| | |||||
* | Add more generic classes that compile | Dmitry Petrashko | 2015-11-10 | 1 | -0/+7 |
| | |||||
* | Showcase #943 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+5 |
| | |||||
* | HasNewBuilder and HasNewCombiner compile | Dmitry Petrashko | 2015-11-10 | 1 | -0/+4 |
| | |||||
* | GenericSeqCompanion compiles | Dmitry Petrashko | 2015-11-10 | 1 | -0/+2 |
| | |||||
* | Another cyclic ref | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | One more cyclic ref | Dmitry Petrashko | 2015-11-10 | 1 | -0/+4 |
| | |||||
* | Start adding scala.collections.generic.* | Dmitry Petrashko | 2015-11-10 | 1 | -0/+20 |
| | |||||
* | TrieIterator uses early definitions. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+1 |
| | |||||
* | Add TreeMap and TreeSet. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | showcase #941 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+4 |
| | |||||
* | Showcase #942 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+4 |
| | |||||
* | Add more collections that compile | Dmitry Petrashko | 2015-11-10 | 1 | -0/+14 |
| | |||||
* | Showcase #940 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+2 |
| | |||||
* | Add Map and MapLike | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | Showcase #939 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | Try to add ListMap and ListSet | Dmitry Petrashko | 2015-11-10 | 1 | -0/+7 |
| | |||||
* | Showcase #939 | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| | |||||
* | Start adding more immutable collections. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+8 |
| | |||||
* | Add more classes that compile | Dmitry Petrashko | 2015-11-10 | 1 | -0/+21 |
| | |||||
* | One more cyclic reference. | Dmitry Petrashko | 2015-11-10 | 1 | -0/+3 |
| |