Fix creating DependenciesResolver with default arguments

This commit is contained in:
Pavel V. Talanov
2017-07-14 20:18:43 +03:00
parent 7aee51fd77
commit bc399444ab
2 changed files with 25 additions and 1 deletions
@@ -83,7 +83,7 @@ open class KotlinScriptDefinitionFromAnnotatedTemplate(
log.warn("[kts] ${resolverClass.qualifiedName} must have a constructor without parameters")
return null
}
return constructorWithoutParameters.call()
return constructorWithoutParameters.callBy(emptyMap())
}
catch (ex: ClassCastException) {
log.warn("[kts] Script def error ${ex.message}")