From 00a75f986e9b1a507b551f990ea8a12a1a470880 Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Wed, 25 Mar 2020 13:18:59 +0100 Subject: Simplify access for PrimaryConstructorExtra --- core/src/main/kotlin/model/aditionalExtras.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/src/main/kotlin/model/aditionalExtras.kt b/core/src/main/kotlin/model/aditionalExtras.kt index 853edd64..af399745 100644 --- a/core/src/main/kotlin/model/aditionalExtras.kt +++ b/core/src/main/kotlin/model/aditionalExtras.kt @@ -37,8 +37,6 @@ class Annotations(val content: List) : ExtraProperty { } } -object PrimaryConstructorExtra: ExtraProperty { - object PrimaryConstructorExtraKey: ExtraProperty.Key - - override val key: ExtraProperty.Key = PrimaryConstructorExtraKey +object PrimaryConstructorExtra: ExtraProperty, ExtraProperty.Key { + override val key: ExtraProperty.Key = this } \ No newline at end of file -- cgit