aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/selfreq.scala
Commit message (Collapse)AuthorAgeFilesLines
* Adapt neg tests to new neg tests checksVladimirNik2016-02-181-1/+1
|
* Represent references to Scala2 inner classes as WithFixedSym typesMartin Odersky2015-10-251-4/+4
| | | | | | | Reason: An inner Scala2 class might be shadowed by a same-named class in a subtype. In Dotty this is disallowed butin Scala 2 it is possible. For instance, math.Numeric and math.Ordering both have an inner class "Ops". Normal TypeRef types could not select the shadowed class in Ordering is the prefix is of type Numeric.
* Error instead of crash when sigName comes up with a missing reference.Martin Odersky2015-07-061-0/+37
A TypeRef can have be unresolved, either because it refers to something that's missing from the classpath or because of transitive self type references. Instead of crashing in sigName, we now report the error. Achieved by defining a new exception type, MissingType, which derives from TypeError. This catches t7933.scala, now integrated in the neg/selfreq.scala. The problem there was a reference to AbsSettings, which was not a member of StandardScalaSettings.this, but was a member of the required type of AbsSettings, which itself appeared in the required type of StandardScalaSettings. We will outlaw in the next commit such transitive required references. Also collapsed TypeError and FatalTypeError. It was a misnomer anyway. Fatal were those type errors that were caught and reported! Open: Where else we should check for unresolved NamedTypes.