We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543a099 commit caf4b6eCopy full SHA for caf4b6e
plugin/src/main/scala/plugin/MetaContextPlacerPhase.scala
@@ -135,7 +135,7 @@ class MetaContextPlacerPhase(setting: Setting) extends CommonPhase:
135
val clsTpe = tree.tpe
136
val clsSym = clsTpe.classSymbol.asClass
137
138
- if (clsTpe <:< hasClsMetaArgsTpe && !clsSym.isAnonymousClass)
+ if (clsTpe <:< hasClsMetaArgsTpe && !clsSym.isAnonymousClass && !clsSym.flags.is(Trait))
139
val paramBody = template.body.takeWhile {
140
case x: TypeDef => true
141
case x: ValDef if x.rhs.isEmpty => true
0 commit comments