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 {
|
||||
it.name == key
|
||||
}
|
||||
require(targetMethodsForName.isNotEmpty()) {
|
||||
"Method key \"$key\" for dialogs.build is not a valid method name"
|
||||
if (targetMethodsForName.isEmpty()) {
|
||||
return
|
||||
}
|
||||
val targetMethodsForParamCount = targetMethodsForName.filter {
|
||||
it.parameterCount == argsForMethod.size
|
||||
|
||||
Reference in New Issue
Block a user