getValue()/setValue() should be marked with 'operator'
This commit is contained in:
@@ -3,8 +3,8 @@ interface Out<out T>
|
||||
interface Inv<T>
|
||||
|
||||
class Delegate<T> {
|
||||
fun getValue(t: Any, p: PropertyMetadata): T = null!!
|
||||
fun setValue(t: Any, p: PropertyMetadata, value: T) {}
|
||||
operator fun getValue(t: Any, p: PropertyMetadata): T = null!!
|
||||
operator fun setValue(t: Any, p: PropertyMetadata, value: T) {}
|
||||
}
|
||||
|
||||
fun <T> getT(): T = null!!
|
||||
|
||||
@@ -5,9 +5,9 @@ public fun </*0*/ T> getT(): T
|
||||
public final class Delegate</*0*/ T> {
|
||||
public constructor Delegate</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata): T
|
||||
public final operator fun getValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata): T
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun setValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||
public final operator fun setValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata, /*2*/ value: T): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ interface Out<out T>
|
||||
interface Inv<T>
|
||||
|
||||
class Delegate<T> {
|
||||
fun getValue(t: Any, p: PropertyMetadata): T = null!!
|
||||
fun setValue(t: Any, p: PropertyMetadata, varue: T) {}
|
||||
operator fun getValue(t: Any, p: PropertyMetadata): T = null!!
|
||||
operator fun setValue(t: Any, p: PropertyMetadata, varue: T) {}
|
||||
}
|
||||
|
||||
fun <T> getT(): T = null!!
|
||||
|
||||
@@ -5,9 +5,9 @@ public fun </*0*/ T> getT(): T
|
||||
public final class Delegate</*0*/ T> {
|
||||
public constructor Delegate</*0*/ T>()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun getValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata): T
|
||||
public final operator fun getValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata): T
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public final fun setValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata, /*2*/ varue: T): kotlin.Unit
|
||||
public final operator fun setValue(/*0*/ t: kotlin.Any, /*1*/ p: kotlin.PropertyMetadata, /*2*/ varue: T): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user