aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos
Commit message (Collapse)AuthorAgeFilesLines
* Fix of t0786: view boundsMartin Odersky2014-03-211-29/+0
| | | | | | | Previously, only implicit method types were eligible as views. This is too strict, as it rules out view bounds. We now also consider types that derive from Function1. The reason for not allowing any type is that this would cause us to check many more types for applicability when an implicit view is searched.
* More testsMartin Odersky2014-03-216-100/+0
| | | | | | Added more tests which all pass, except for tests in disabled and pending. t0694 went from pos to neg, because the kind of alias type used in t0695 is no longer supported.
* Fix of t0591: implicitlyMartin Odersky2014-03-211-7/+0
| | | | A debug assertion in implicitSearch gave a false alarm and was removed.
* Fix of t0504: _root_ not foundMartin Odersky2014-03-211-9/+0
| | | | _root_ is now entered into an enclosing context.
* Fix of t0438 - lambdas and eta expansionMartin Odersky2014-03-215-42/+0
| | | | | | | | | | | | | | Two fixes were needed 1) When typing a function value (x1: T1, ..., xN: Tn) => e, don't unconditionally issue an error if the expected function type arity is different from N. Instead, issue an error only if one of the types T1, ..., Tn is absent. The idea is that only then we need to consult the expected type for the parameter type. This allows to fix the problem later by an implicit conversion applied to the function value. 2) When eta-expanding, do not automtically take the arity of the expected function value as the arity of the generated lambda. Instead, take the method's arity, and copy method parameters into the lambda in case the arities are different.
* Tests t01xx and t02xxMartin Odersky2014-03-219-106/+0
| | | | | | | | Test t0288 moved to disabled due to lack of Java interop. Test t0273 fixed by relaxing double def condition: We only regard two definitions that define the same name and have exactly the same signature as double definitions. Previously, signatures that defined the same parameters were also excluded.
* apply srewrite (explicit types for implicits + no procedure syntaxSamuel Gruetter2014-03-1940-65/+65
| | | | for constructors) to tests/untried/pos
* add tests from scala/test/files/{pos,neg}Samuel Gruetter2014-03-121567-0/+23781
with explicit Unit return type