From 332eca2d55f98680d5ce0525517319c29284bffe Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Wed, 30 Aug 2023 11:25:11 +0300 Subject: [PATCH] [Test] Update testdata of fixed test I don't really know which exact commit fixed this test, but there was a problem with return types of delegated members. Before my changes delegated `override fun foo(x: Int)` in `actual class E` had error return type and now it has correct type `Int` --- ...ms_inheritanceByDelegation_positive.fir.kt | 21 ------------------- ...Params_inheritanceByDelegation_positive.kt | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.fir.kt diff --git a/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.fir.kt b/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.fir.kt deleted file mode 100644 index 67b8207946f..00000000000 --- a/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.fir.kt +++ /dev/null @@ -1,21 +0,0 @@ -// MODULE: m1-common -// FILE: common.kt -expect class E { - fun f(x: Int): Int -} - -expect class E2 { - fun f(x: Int): Int -} - -// MODULE: m2-jvm()()(m1-common) -// FILE: jvm.kt -interface I { - fun f(x: Int = 5) = x -} - -actual class E(i: I) : I by i - -actual class E2(i: I) : I by i { - actual override fun f(x: Int) = x -} diff --git a/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.kt b/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.kt index bca7c9cdde7..065dc8ea938 100644 --- a/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.kt +++ b/compiler/testData/diagnostics/tests/multiplatform/defaultParams_inheritanceByDelegation_positive.kt @@ -1,3 +1,4 @@ +// FIR_IDENTICAL // MODULE: m1-common // FILE: common.kt expect class E {