Better handling of annotations – TreeBrowser crash

17 views
Skip to first unread message

Simon Ochsenreither

unread,
Aug 11, 2016, 10:08:17 AM8/11/16
to scala-internals


Hey,

while debugging the remaining issue of https://github.com/scala/scala/pull/4848#issuecomment-194759510 I tried to have a look at the tree during the various phases.
The tree is still there in namer, but as Jason suggested, it seems to get rewritten in typer.

Interestingly, scalac's TreeBrowser can't even show the tree in namer, instead it crashes on this code snippet when trying to open the Apply tree:

class ann(baz: arg = new arg(bao = "argbao")) extends annotation.ClassfileAnnotation
class arg(bao: String = "argdef") extends annotation.ClassfileAnnotation




Simon Ochsenreither

unread,
Aug 11, 2016, 10:10:44 AM8/11/16
to scala-internals
Could this suggest we are already doing something to the "outer" layer of the annotation (baz: arg = ..., bao: String = ..., that's gets rewritten correctly), but not to the inner layer (bao = "argbao") in namer?
Reply all
Reply to author
Forward
0 new messages