aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/functions1.scala
Commit message (Collapse)AuthorAgeFilesLines
* Disambiguate names in test caseMartin Odersky2014-10-131-3/+3
|
* Checking for double definitions among class definitions.Martin Odersky2013-12-161-22/+26
| | | | | | Also fixes to typedReturn. Adapted tests accordingly.
* Fixes related to SAM types.Martin Odersky2013-12-151-2/+1
| | | | | | | 1. Changes to SAMType extractor 2. Self names are no longer members of enclosing class 3. SAM-Type closures now print with their result type. 4. refactoring newSkolemSingleon ==> narrow
* Fixed several deep problems in handling of types and symbols.Martin Odersky2013-12-141-1/+20
| | | | | | | | | 1. We forgot to mark declaration symbols Deferred. 2. Types with NoPrefix and the same name got identified. Fixed by adding a new category WithNoPrefix to named types, and changing the way named types get generated. 3. Self types lacked parameters. (Question: Do we need to also track type members?) 4. Printers caused cyclic reference errors. Now some print operations are more careful with forcing. 5. Namedparts accumulator has to be more careful with ThisTypes. Because self types now contain parameters, which might lead back to this, we only add the class name (or the source module, if it's a module class). 6. toBounds in TypeApplications needs to use Co/Contra aliases for expanded name parameters, not just local ones.
* Added isRef method to determine whether a type is a typeref that refers to a ↵Martin Odersky2013-09-261-1/+2
| | | | | | | symbol. The alternative (tpe eq sym.typeConstructor) does not work because types are not unique. The alternative (tpe.typeSymbol == sym) does not work because other types than TypeRefs have typeSymbols.
* Fixed bugs related to typechecking closures.Martin Odersky2013-08-271-0/+13