Drew Hamilton
04/20/2020, 8:38 AMprivate companion object, the Companion class is compiled as package-private in the bytecode, but the static Companion field is compiled as public + deprecated in the bytecode. Why is this?
2. Because of this, in the IDE, from a Java call-site, I can can compile and run Object object = DeferredBoolean.Attribute.Companion; without issue. The Companion field doesn’t even get a strikethrough, which seems like an IDE bug. Assuming this hasn’t already been fixed in a new IDE version, and depending on the answer to #1, should I file an IDE bug?udalov
Drew Hamilton
04/20/2020, 1:41 PMDrew Hamilton
04/20/2020, 2:27 PM