Take imported from object descriptor into account in pseudocode
So #KT-15566 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
056eebf69c
commit
14e798a1fc
+35
@@ -0,0 +1,35 @@
|
||||
// See KT-15566
|
||||
|
||||
import DefaultHttpClient.client
|
||||
|
||||
interface HttpClient
|
||||
|
||||
class HttpClientImpl : HttpClient
|
||||
|
||||
// Below we should have initialization error for both (!) delegates
|
||||
|
||||
object DefaultHttpClient : HttpClient by <!UNINITIALIZED_VARIABLE!>client<!> {
|
||||
val client = HttpClientImpl()
|
||||
}
|
||||
|
||||
object DefaultHttpClientWithGetter : HttpClient by client {
|
||||
val client get() = HttpClientImpl()
|
||||
}
|
||||
|
||||
object DefaultHttpClientWithFun : HttpClient by fClient() {
|
||||
}
|
||||
|
||||
private fun fClient() = HttpClientImpl()
|
||||
|
||||
private fun <T> lazy(init: () -> T): kotlin.<!UNRESOLVED_REFERENCE!>Lazy<!><T> {
|
||||
init()
|
||||
null!!
|
||||
}
|
||||
|
||||
object DefaultHttpClientWithBy : HttpClient by client {
|
||||
val client by lazy { HttpClientImpl() }
|
||||
}
|
||||
|
||||
object DefaultFqHttpClient : HttpClient by DefaultFqHttpClient.<!UNINITIALIZED_VARIABLE!>client<!> {
|
||||
val client = HttpClientImpl()
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
package
|
||||
|
||||
private fun fClient(): HttpClientImpl
|
||||
private fun </*0*/ T> lazy(/*0*/ init: () -> T): [ERROR : kotlin.Lazy<T>]<T>
|
||||
|
||||
public object DefaultFqHttpClient : HttpClient {
|
||||
private constructor DefaultFqHttpClient()
|
||||
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
|
||||
}
|
||||
|
||||
public object DefaultHttpClient : HttpClient {
|
||||
private constructor DefaultHttpClient()
|
||||
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
|
||||
}
|
||||
|
||||
public object DefaultHttpClientWithBy : HttpClient {
|
||||
private constructor DefaultHttpClientWithBy()
|
||||
public final val client: [ERROR : <ERROR FUNCTION RETURN TYPE>]
|
||||
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
|
||||
}
|
||||
|
||||
public object DefaultHttpClientWithFun : HttpClient {
|
||||
private constructor DefaultHttpClientWithFun()
|
||||
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
|
||||
}
|
||||
|
||||
public object DefaultHttpClientWithGetter : HttpClient {
|
||||
private constructor DefaultHttpClientWithGetter()
|
||||
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
|
||||
}
|
||||
|
||||
public interface HttpClient {
|
||||
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
|
||||
}
|
||||
|
||||
public final class HttpClientImpl : HttpClient {
|
||||
public constructor 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
|
||||
}
|
||||
Reference in New Issue
Block a user