| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Makes side-effecting initialization of interpreter
unnecessary.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, repeated parameters were typed as `<repeated>[T]`. The
method `underlyingWithRepeated` converts `<repeated>[T]` to `Seq[T]`.
This method was called in typedIdent, but the call was ineffective
because the type of a repeated parameter ident is a TermRef. This led
to a retyping error in Decorators.scala under -Ycheck:front.
We now distinguish between the type of the internal parameter ValDef
and the type of the parameter in the MethodType. The former has the type
`Seq[T] @dotty.annotation.internal.repeated`, the latter has the type
`<repeated>[T]`. The translation with `underlyingWithRepeated` thus
becomes unneccessary.
|
|
|
|
| |
See examplation in 2nd commit of branch aborted/simplify-hk.
|
| |
|
| |
|
| |
|
|
|
|
| |
Reason: This works even for typeRefs with joint-ref denotations, even if the symbol does not exist. The only reason to use symbol.isAliasType is if info.isAlias can produce a cycle.
|
|
|
|
| |
It needs to follow type aliases in order not to give false indications what variables are contained in a type.
|
|
|
|
| |
parameters in constructors.
|
|
|
|
| |
Not sure why it was different before. We need it at least to add implicit parameters in typedAheadExpr.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Objective: Avoid cycles by detecting all cases where
A <: B and B <: A
and removing those cases by unifuing A and B.
Cycles need to be avoided because they lead to deep subtype recursions.
|
|
|
|
|
|
|
|
|
|
| |
Need to handle the case of a curried method with result type
(Ts)T
and expected type
Ts => T
|
|
|
|
|
|
| |
rules. (reverted from commit 50ab9f559ad36b916d24e733df3629994d239583)
We now admit `identity _` and, if the expected type is a function type, pass this type on to the function. If the expected type is not a function type, we pass on AnyFunctionProto.
|
| |
|
|
|
|
|
|
| |
… after figuring out the root cause: conforms needs to be renamed because otherwise it shadows Predef.conforms.
Also fixing two bugs in Desugar.
|
| |
|
| |
|
|
Left dummies for Compiler and Run.
|