Make PropertyMetadataImpl a data class

To allow property delegates to use property metadata as a key in the hash map,
and to improve debugging experience
This commit is contained in:
Alexander Udalov
2015-08-07 16:00:22 +03:00
parent ea292fa6d2
commit 9095fa2844
4 changed files with 48 additions and 2 deletions
+3 -1
View File
@@ -1076,10 +1076,12 @@ public interface PropertyMetadata {
public abstract fun <get-name>(): kotlin.String
}
public final class PropertyMetadataImpl : kotlin.PropertyMetadata {
kotlin.data() public final class PropertyMetadataImpl : kotlin.PropertyMetadata {
/*primary*/ public constructor PropertyMetadataImpl(/*0*/ name: kotlin.String)
public open override /*1*/ val name: kotlin.String
public open override /*1*/ fun <get-name>(): kotlin.String
public final /*synthesized*/ fun component1(): kotlin.String
public final /*synthesized*/ fun copy(/*0*/ name: kotlin.String = ...): kotlin.PropertyMetadataImpl
}
public interface Range</*0*/ T : kotlin.Comparable<T>> {