scala/scala — comment on commit 16cd1b6dde433ce4190e5bbf601adb29ad0fc9db
File:  line 0
By dragos:

Just to be a little more specific: what this code does is that it will re-create the synthetic companion object if it already exists **but** it is **not** part of the current compiler run. The last condition is important if you recompile the same source file several times (each time is a new compiler Run), and you need to re-create the companion object each time (since the source file may have changed since the last time).

It would be great to add a test for this case in the presentation compiler suite, I'll see if Mirco is up to it :)