From 0d18f2f3964e30b3a137541a56e2c30090da35eb Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Fri, 27 Dec 2019 17:05:11 +0300 Subject: [PATCH] Introduce an internal property that returns either qualified or simple name For use in common KClass.cast (cherry picked from commit e9d1a7f6c5c2d09c8882876afb5fa335eb4d248b) --- runtime/src/main/kotlin/kotlin/reflect/KClassesImpl.kt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 runtime/src/main/kotlin/kotlin/reflect/KClassesImpl.kt diff --git a/runtime/src/main/kotlin/kotlin/reflect/KClassesImpl.kt b/runtime/src/main/kotlin/kotlin/reflect/KClassesImpl.kt new file mode 100644 index 00000000000..17baee448c4 --- /dev/null +++ b/runtime/src/main/kotlin/kotlin/reflect/KClassesImpl.kt @@ -0,0 +1,9 @@ +/* + * Copyright 2010-2019 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. + */ + +package kotlin.reflect + +internal actual inline val KClass<*>.qualifiedOrSimpleName: String? + get() = qualifiedName \ No newline at end of file