aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/utilities/cast.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin/utilities/cast.kt')
-rw-r--r--core/src/main/kotlin/utilities/cast.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/kotlin/utilities/cast.kt b/core/src/main/kotlin/utilities/cast.kt
new file mode 100644
index 00000000..d4a8d73d
--- /dev/null
+++ b/core/src/main/kotlin/utilities/cast.kt
@@ -0,0 +1,5 @@
+package org.jetbrains.dokka.utilities
+
+inline fun <reified T> Any.cast(): T {
+ return this as T
+}