From fa34021a042192ae5990e106016953ea7973b109 Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Thu, 21 Sep 2023 11:31:18 +0200 Subject: [PATCH] [Native][tests] Fix KLIB contents tests --- .../kotlin/cli/klib/test/ContentsTest.kt | 23 ++++--------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/kotlin-native/klib/src/test/kotlin/org/jetbrains/kotlin/cli/klib/test/ContentsTest.kt b/kotlin-native/klib/src/test/kotlin/org/jetbrains/kotlin/cli/klib/test/ContentsTest.kt index 9e4a6db9cc8..668959b24e0 100644 --- a/kotlin-native/klib/src/test/kotlin/org/jetbrains/kotlin/cli/klib/test/ContentsTest.kt +++ b/kotlin-native/klib/src/test/kotlin/org/jetbrains/kotlin/cli/klib/test/ContentsTest.kt @@ -44,9 +44,6 @@ class ContentsTest { annotation class A constructor() : Annotation annotation class B constructor() : Annotation class Foo constructor() - } - - package { @A @B fun a() fun Foo.e() fun f1(x: Foo) @@ -108,14 +105,14 @@ class ContentsTest { class B constructor() { - object C { - fun c() - } - companion object { fun b() } + object C { + fun c() + } + } class D constructor() { @@ -294,9 +291,6 @@ class ContentsTest { """ package custom.pkg { typealias MyTransformer = (String) -> Int - } - - package custom.pkg { val v1: Int = 1 val v2: String = "hello" val v3: (String) -> Int @@ -310,9 +304,6 @@ class ContentsTest { """ package { typealias MyTransformer = (String) -> Int - } - - package { val v1: Int = 1 val v2: String = "hello" val v3: (String) -> Int @@ -328,9 +319,6 @@ class ContentsTest { object Bar class Foo constructor() typealias MyTransformer = (String) -> Int - } - - package custom.pkg { val v1: Int = 1 val v2: String = "hello" val v3: (String) -> Int @@ -346,9 +334,6 @@ class ContentsTest { object Bar class Foo constructor() typealias MyTransformer = (String) -> Int - } - - package { val v1: Int = 1 val v2: String = "hello" val v3: (String) -> Int