From 1fca19258df99769c176a9c60c5b56b6067d398a Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Mon, 20 Sep 2021 09:11:35 +0200 Subject: [PATCH] [Commonizer] ParameterizedTypesCommonizationTest: Remove unnecessary symbols ^KT-48288 --- .../ParameterizedTypesCommonizationTest.kt | 26 +++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/native/commonizer/tests/org/jetbrains/kotlin/commonizer/hierarchical/ParameterizedTypesCommonizationTest.kt b/native/commonizer/tests/org/jetbrains/kotlin/commonizer/hierarchical/ParameterizedTypesCommonizationTest.kt index d96bfdada07..a82d2f2e933 100644 --- a/native/commonizer/tests/org/jetbrains/kotlin/commonizer/hierarchical/ParameterizedTypesCommonizationTest.kt +++ b/native/commonizer/tests/org/jetbrains/kotlin/commonizer/hierarchical/ParameterizedTypesCommonizationTest.kt @@ -122,26 +122,22 @@ class ParameterizedTypesCommonizationTest : AbstractInlineSourcesCommonizationTe simpleSingleSourceTarget( "a", """ class Triple - typealias T1 = Triple - typealias T2 = Triple - typealias T3 = Triple - typealias T4 = Triple + typealias A = Triple + typealias B = Triple - fun x1(x: T4) - fun x2(x: T3) + fun x1(x: B) + fun x2(x: A) """.trimIndent() ) simpleSingleSourceTarget( "b", """ class Triple - typealias T1 = Triple - typealias T2 = Triple - typealias T3 = Triple - typealias T4 = Triple + typealias A = Triple + typealias B = Triple - fun x1(x: T3) // NOTE: T3 & T4 flipped - fun x2(x: T4) // NOTE: T3 & T4 flipped + fun x1(x: A) // NOTE: A & B flipped + fun x2(x: B) // NOTE: A & B flipped """.trimIndent() ) } @@ -149,10 +145,8 @@ class ParameterizedTypesCommonizationTest : AbstractInlineSourcesCommonizationTe result.assertCommonized( "(a, b)", """ expect class Triple() - typealias T1 = Triple - typealias T2 = Triple - typealias T3 = Triple - typealias T4 = Triple + typealias A = Triple + typealias B = Triple expect fun x1(x: Triple) expect fun x2(x: Triple)