From 1de62d6232940c942705ffe785dec305bab5b300 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Thu, 23 Jun 2022 20:26:45 +0300 Subject: [PATCH] [K/N] Add test-cases for KT-50109 --- kotlin-native/backend.native/tests/compilerChecks/t61.kt | 9 +++++++++ kotlin-native/backend.native/tests/compilerChecks/t62.kt | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 kotlin-native/backend.native/tests/compilerChecks/t61.kt create mode 100644 kotlin-native/backend.native/tests/compilerChecks/t62.kt diff --git a/kotlin-native/backend.native/tests/compilerChecks/t61.kt b/kotlin-native/backend.native/tests/compilerChecks/t61.kt new file mode 100644 index 00000000000..b6e95e3927e --- /dev/null +++ b/kotlin-native/backend.native/tests/compilerChecks/t61.kt @@ -0,0 +1,9 @@ +/* + * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +// KT-50109 +class Foo { + companion object : platform.darwin.NSObjectMeta() +} \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/compilerChecks/t62.kt b/kotlin-native/backend.native/tests/compilerChecks/t62.kt new file mode 100644 index 00000000000..19529d448e4 --- /dev/null +++ b/kotlin-native/backend.native/tests/compilerChecks/t62.kt @@ -0,0 +1,7 @@ +/* + * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. + */ + +// KT-50109 +class Foo : platform.darwin.NSObjectMeta() \ No newline at end of file