Skip to content

Inconsistency with implicit parameter list for traits #1444

Closed
@acdenhartog

Description

@acdenhartog
class Cls(implicit x:X)
class ClsImpl extends Cls //this works

trait Tr1(implicit x:X)
class TrtImpl extends Tr1 //Compiler: Error: parameterized trait Tr1 lacks argument list

trait Tr2()(implicit x:X)
class Tr2Impl extends Tr2() //this works

trait X
implicit object AnX extends X

The relevant method is traitInits in Mixin.

So it seems there are multiple different implementations of "argument list".
Is that because Mixin phase has to occur after Erasure?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions