[FIR] Disallow qualified access to uninitialized fields in delegate

When using a field as the delegate for a super-interface of an object,
make sure uninitialized fields are not allowed. Specifically, disallow
access to these fields when referenced via object qualifier.

^KT-56489 Fixed
This commit is contained in:
Brian Norman
2024-01-18 09:48:10 -06:00
committed by Space Team
parent e2f9af1592
commit c628172235
4 changed files with 15 additions and 21 deletions
@@ -1,7 +1,6 @@
package
private fun fClient(): HttpClientImpl
private fun </*0*/ T> lazy(/*0*/ init: () -> T): [Error type: Unresolved type for kotlin.Lazy<T>]<T>
public object DefaultFqHttpClient : HttpClient {
private constructor DefaultFqHttpClient()
@@ -21,7 +20,7 @@ public object DefaultHttpClient : HttpClient {
public object DefaultHttpClientWithBy : HttpClient {
private constructor DefaultHttpClientWithBy()
public final val client: [Error type: Error delegation type for lazy { HttpClientImpl() }]
public final val client: HttpClientImpl
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String