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
1|definstance[A] givenBaz[A]:BazLaws[A] =newBazLaws[A] {}
|^| parameterized traitFooLaws is indirectly implemented,
| needs to be implemented directly so that arguments can be passed
The text was updated successfully, but these errors were encountered:
SIP-25 says "Only classes can pass arguments to parent traits. Traits themselves can pass arguments to neither classes nor traits." and this is pretty central to making trait constructors work I think, so BarLaws can't pass its Bar[A] to FooLaws. However what we could maybe do is: when we see that there's an indirectly implemented trait whose constructor parameters haven't been filled and these parameters are all implicit, perform an implicit search before failing with the error you're seeing.
Namer will augment the parent types of a class with possibly other types.
Currently the only such change is a possibly leading class type, but with
scala#7613 we wll also generate trait parents that take context parameters.
The new method `parentTrees` will reflect any such changes in the parent
trees in Typer.
Suppose you have a hierarchy like this:
It'd be nice to be able to write something like this:
Instead of:
The former fails on the current nightly with:
The text was updated successfully, but these errors were encountered: