mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-05 22:54:55 +08:00
Fix cast in findBackingFieldValue
This commit is contained in:
@@ -161,7 +161,7 @@ public fun <T> AbstractPluginData.findBackingFieldValue(property: KProperty<T>):
|
||||
@ConsoleExperimentalApi
|
||||
public fun <T> AbstractPluginData.findBackingFieldValue(propertyValueName: String): Value<out T>? {
|
||||
@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>?
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user