6.7.0 - Alpha16 - 修复 dialog.build 选项参数属性名判定异常
This commit is contained in:
@@ -706,8 +706,8 @@ class Dialogs(scriptRuntime: ScriptRuntime) : Augmentable(scriptRuntime) {
|
|||||||
val targetMethodsForName = methods.filter {
|
val targetMethodsForName = methods.filter {
|
||||||
it.name == key
|
it.name == key
|
||||||
}
|
}
|
||||||
require(targetMethodsForName.isNotEmpty()) {
|
if (targetMethodsForName.isEmpty()) {
|
||||||
"Method key \"$key\" for dialogs.build is not a valid method name"
|
return
|
||||||
}
|
}
|
||||||
val targetMethodsForParamCount = targetMethodsForName.filter {
|
val targetMethodsForParamCount = targetMethodsForName.filter {
|
||||||
it.parameterCount == argsForMethod.size
|
it.parameterCount == argsForMethod.size
|
||||||
|
|||||||
Reference in New Issue
Block a user