6.7.0 - Alpha16 - 修复 dialog.build 选项参数属性名判定异常
This commit is contained in:
1 parent
a6542d4c71
commit
3d7b50ec69
1 file changed
+2
-2
@@ -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