scalamacros / paradise

(No longer actively maintained.)
http://scalamacros.org/
BSD 3-Clause "New" or "Revised" License
158 stars 53 forks source link

parents are processed incorrectly in 2.10.x #40

Closed xeno-by closed 10 years ago

xeno-by commented 10 years ago
22:58 ~/Projects/Paradise2104/sandbox/src/main/scala (2.10.4)$ scala
Welcome to Scala version 2.10.4-20140209-180020-b66a39653b (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala> val q"class C extends ..$parents" = q"class C extends D(2)"
parents: List[reflect.runtime.universe.Tree] = List(D)

scala> q"class C extends D(2)"
res0: reflect.runtime.universe.ClassDef =
class C extends D {
  def <init>() = {
    super.<init>();
    ()
  }
}