diff --git a/compiler/testData/ir/interpreter/jvm/classReference.kt b/compiler/testData/ir/interpreter/jvm/classReference.kt index 967ab2d235b..7425dac2fe1 100644 --- a/compiler/testData/ir/interpreter/jvm/classReference.kt +++ b/compiler/testData/ir/interpreter/jvm/classReference.kt @@ -14,7 +14,7 @@ class A(val a: Int, val b: String) { const val aSimpleName = A::class.simpleName!! const val aQualifiedName = A::class.qualifiedName!! -//const val aMembers = A::class.members.joinToString() TODO -> `val test.A.a: kotlin.Int, val test.A.b: kotlin.String, val test.A.(kotlin.String.)propertyWithExtension: kotlin.Int, fun test.A.(kotlin.Int.)funWithExtension(kotlin.Int): kotlin.Int, fun test.A.equals(kotlin.Any?): kotlin.Boolean, fun test.A.hashCode(): kotlin.Int, fun test.A.toString(): kotlin.String` +const val aMembers = A::class.members.joinToString() const val aConstructors = A::class.constructors.(kotlin.Int, kotlin.String): test.A`!>joinToString() const val aVisibility = A::class.visibility.toString() const val aSupertypes = A::class.supertypes.joinToString() @@ -31,11 +31,11 @@ class B(val prop: T) : Base { fun withTypeParameter(num: E) = num.toString() } -//const val bMembers = B::class.members.joinToString() TODO -> `val test.B.prop: T, fun test.B.get(): T, fun test.B.getThis(): test.B, fun test.B.withTypeParameter(E): kotlin.String, fun test.B.equals(kotlin.Any?): kotlin.Boolean, fun test.B.hashCode(): kotlin.Int, fun test.B.toString(): kotlin.String` +const val bMembers = B::class.members..prop: T, fun test.B.get(): T, fun test.B.getThis(): test.B, fun test.B.withTypeParameter(E): kotlin.String, fun test.B.equals(kotlin.Any?): kotlin.Boolean, fun test.B.hashCode(): kotlin.Int, fun test.B.toString(): kotlin.String`!>joinToString() const val bTypeParameters = B::class.typeParameters.joinToString() const val bSupertypes = B::class.supertypes., kotlin.Any`!>joinToString() -//const val bReturnType1 = B::class.members.toList()[1].returnType.toString() TODO -> `T` -//const val bReturnType2 = B::class.members.toList()[3].returnType.toString() TODO -> `kotlin.String` +const val bReturnType1 = B::class.members.toList()[1].returnType.toString() +const val bReturnType2 = B::class.members.toList()[3].returnType.toString() const val arguments1 = (B(1)::getThis as KFunction<*>).returnType.arguments.joinToString() const val arguments2 = (arrayOf(1)::iterator as KFunction<*>).returnType.arguments.joinToString() @@ -46,5 +46,5 @@ class C { get() = this.length } -//const val cMember = C::class.members.toList()[0].toString() TODO -> `val test.C.(kotlin.String.)getLength: kotlin.Int` -//const val cMemberReturnType = C::class.members.toList()[0].returnType.classifier.toString() TODO -> `class kotlin.Int` \ No newline at end of file +const val cMember = C::class.members.toList()[0].toString() +const val cMemberReturnType = C::class.members.toList()[0].returnType.classifier.toString() diff --git a/compiler/testData/ir/interpreter/jvm/kProperty2.kt b/compiler/testData/ir/interpreter/jvm/kProperty2.kt index 98b24e1fa6f..2a485cc5d8d 100644 --- a/compiler/testData/ir/interpreter/jvm/kProperty2.kt +++ b/compiler/testData/ir/interpreter/jvm/kProperty2.kt @@ -8,4 +8,4 @@ class A(val a: Int) { get() = this.length * a } -//const val kproperty2Get = A::class.members.toList()[1].call(A(2), "123").toString() TODO -> `6` +const val kproperty2Get = A::class.members.toList()[1].call(A(2), "123").toString() diff --git a/compiler/testData/ir/interpreter/jvm/parameterReference.kt b/compiler/testData/ir/interpreter/jvm/parameterReference.kt index ec800b25583..1f7d0b2787c 100644 --- a/compiler/testData/ir/interpreter/jvm/parameterReference.kt +++ b/compiler/testData/ir/interpreter/jvm/parameterReference.kt @@ -16,7 +16,7 @@ class A { const val parameters1 = (::withParameters as KFunction<*>).parameters.joinToString() const val parameters2 = (String::withExtension as KFunction<*>).parameters.joinToString() -//const val parameters3 = A::class.members.toList()[0].parameters.joinToString() TODO -> `instance parameter of fun test.A.(kotlin.String.)get(kotlin.Int): kotlin.String, extension receiver parameter of fun test.A.(kotlin.String.)get(kotlin.Int): kotlin.String, parameter #2 a of fun test.A.(kotlin.String.)get(kotlin.Int): kotlin.String` +const val parameters3 = A::class.members.toList()[0].parameters.joinToString() // properties @CompileTimeCalculation @@ -27,4 +27,4 @@ class B(val b: Int) { const val property0Parameters = B(1)::b.parameters.toString() const val property1Parameters = B::b.parameters.toString() -//const val property2Parameters = B::class.members.toList()[1].parameters.toString() TODO -> `[instance parameter of val test.B.(kotlin.String.)size: kotlin.Int, extension receiver parameter of val test.B.(kotlin.String.)size: kotlin.Int]` +const val property2Parameters = B::class.members.toList()[1].parameters.toString()