diff options
Diffstat (limited to 'src/StackFrame.kt')
-rw-r--r-- | src/StackFrame.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StackFrame.kt b/src/StackFrame.kt index 66d74b2..9a0832f 100644 --- a/src/StackFrame.kt +++ b/src/StackFrame.kt @@ -9,7 +9,7 @@ class StackFrame(val parent: StackFrame?) { private val meta: MutableMap<MetaKey<*>, Any> = mutableMapOf() fun <T : Any> getMeta(key: MetaKey<T>): T? { - return meta[key] as? T + return meta[key]?.let { it as T } ?: parent?.meta?.get(key)?.let { it as T } } fun <T : Any> setMeta(key: MetaKey<T>, value: T) { |