Closed scabug closed 1 year ago
Imported From: https://issues.scala-lang.org/browse/SI-9360?orig=1 Reporter: JIE HUANG (JIEHUANG) Affected Versions: 2.11.6
duplicates https://github.com/scala/bug/issues/9115
where the nested object depends on a member of the enclosing object.
Output: AObj in list is null. List(null, fun.Object$BObj$@28d93b30) Expected: initialization of list should be initialized correctly independent from Object.AObj.print/Object.AObj.print.
Note: If No Object.AObj.print/Object.AObj.print be called before Object.print, the initialization is correct.