Closed scabug closed 6 years ago
Imported From: https://issues.scala-lang.org/browse/SI-8399?orig=1 Reporter: @densh Affected Versions: 2.11.0-RC1
@densh said: Workaround: always extract modifiers even if they are not used:
scala> val q"$_ trait $name { ..$stats }" = q"trait X { def x: Int }"
name: reflect.runtime.universe.TypeName = X
stats: List[reflect.runtime.universe.Tree] = List(def x: Int)
@densh said (edited on Apr 4, 2014 10:35:16 AM UTC): Note to self: don't forget to update the docs before closing this issue.
closing all quasiquotes tickets; see #10755
Caused by the fact that interface trait has one extra INTERFACE flag which is not expected by the structure of the trait pattern on the left.