diff --git a/compiler/frontend/src/jet/Library.jet b/compiler/frontend/src/jet/Library.jet index d78d036b747..ab4e2c39222 100644 --- a/compiler/frontend/src/jet/Library.jet +++ b/compiler/frontend/src/jet/Library.jet @@ -65,18 +65,12 @@ public open class Throwable(message : String? = null, cause: Throwable? = null) public fun printStackTrace() : Unit } -/* - * Should have an abstract property 'name', overridden in PropertyMetadataImpl - */ public trait PropertyMetadata { - public fun getName(): String + public val name: String } /* * In front-end we need to resolve call PropertyMetadataImpl() in getter of delegated property * to be able generate it in back-end using ExpressionCodegen.invokeFunction */ -public class PropertyMetadataImpl(private val innerName: String): PropertyMetadata { - public override fun getName(): String = innerName -} - +public class PropertyMetadataImpl(public override val name: String): PropertyMetadata diff --git a/compiler/testData/builtin-classes.txt b/compiler/testData/builtin-classes.txt index b9b026549f0..49213867dbf 100644 --- a/compiler/testData/builtin-classes.txt +++ b/compiler/testData/builtin-classes.txt @@ -1357,13 +1357,12 @@ public trait Progression : jet.Iterable { } public trait PropertyMetadata { - public abstract fun getName(): jet.String + public abstract val name: jet.String } public final class PropertyMetadataImpl : jet.PropertyMetadata { - public constructor PropertyMetadataImpl(/*0*/ innerName: jet.String) - private final val innerName: jet.String - public open override /*1*/ fun getName(): jet.String + public constructor PropertyMetadataImpl(/*0*/ name: jet.String) + public open override /*1*/ val name: jet.String } public trait Range> {