You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When typing a DerivedFromParamTree, only complete constructors
Parameter accessors have a derived rhs based on the corresponding class
constructor parameter. Before this commit, typing such a derived tree
would involve completing the enclosing class, which requires typing the
class parents, which might end up requiring the info of the original
parameter accessor. This doesn't always cause cyclic reference since
`Namer#typeDefSig` sets temporary empty bounds when completing a type
definition, but it can lead to puzzling compilation errors. In
particular, after the changes related to completions in this PR, it
broke the bootstrap.
We fix this by making `DerivedFromParamTree#ensureCompletions` force
less: we only really need to force the constructors, this requires some
refactoring in `ClassCompleter` to allow such partial completions.
0 commit comments