01a757cbd6
Currently, PROPERTY_WITH_NO_TYPE_NO_INITIALIZER is reported for local variables, but not reported for member or top-level properties. Add a check to the common `checkPropertyInitializer` for when a property type cannot be determined from the getter. This also corrects a K1 versus K2 inconsistency, where K2 would allow blocks from getters to determine property type instead of only allowing expression bodies. ^KT-59935 Fixed ^KT-60117 Fixed ^KT-60123 Fixed
26 lines
1.3 KiB
Plaintext
Vendored
26 lines
1.3 KiB
Plaintext
Vendored
package
|
|
|
|
public fun </*0*/ T> delegateFactory(/*0*/ p: kotlin.Any): Delegate
|
|
|
|
public final class C {
|
|
public constructor C(/*0*/ p: kotlin.Any, /*1*/ v: kotlin.Any)
|
|
public final val test1: [Error type: Return type for function cannot be resolved]
|
|
public final val test2: kotlin.Any
|
|
public final val test4: [Error type: Return type for property test4 cannot be resolved]
|
|
public final var test5: [Error type: Return type for property test5 cannot be resolved]
|
|
public final lateinit var test6: [Error type: Return type for property test6 cannot be resolved]
|
|
public final val v: kotlin.Any
|
|
public final val </*0*/ T> kotlin.collections.List<T>.test3: kotlin.String
|
|
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 Delegate {
|
|
private constructor Delegate()
|
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
|
public final operator fun getValue(/*0*/ x: kotlin.Any?, /*1*/ y: kotlin.Any?): kotlin.String
|
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
|
}
|