scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

No way to define companions in toolbox interface #8540

Open scabug opened 10 years ago

scabug commented 10 years ago

ToolBox.scala:

  def define(tree: u.ImplDef): u.Symbol

That means if you have companions which refer to one another (that's pretty much any companions) you can't define them without introducing another layer of wrapping, as each impldef fails, unable to see the other one.

scabug commented 10 years ago

Imported From: https://issues.scala-lang.org/browse/SI-8540?orig=1 Reporter: @paulp Affected Versions: 2.11.0

scabug commented 10 years ago

@xeno-by said: Good point! Somehow I was very much sure that this signature was saying u.ImplDef* :(