mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Fix cast in findBackingFieldValue
This commit is contained in:
parent
4f3c9bd8d9
commit
65a65ffb03
@ -161,7 +161,7 @@ public fun <T> AbstractPluginData.findBackingFieldValue(property: KProperty<T>):
|
|||||||
@ConsoleExperimentalApi
|
@ConsoleExperimentalApi
|
||||||
public fun <T> AbstractPluginData.findBackingFieldValue(propertyValueName: String): Value<out T>? {
|
public fun <T> AbstractPluginData.findBackingFieldValue(propertyValueName: String): Value<out T>? {
|
||||||
@Suppress("UNCHECKED_CAST")
|
@Suppress("UNCHECKED_CAST")
|
||||||
return this.valueNodes.find { it.valueName == propertyValueName }?.value as Value<out T>
|
return this.valueNodes.find { it.valueName == propertyValueName }?.value as Value<out T>?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user