Why doesn't `package kotlin.reflect.jvm.internal.c...
# announcements
Why doesn't
package kotlin.reflect.jvm.internal.calls.Caller.checkArguments(args: Array<*>)
respect functions with default parameter values? I don't want to include it in
func.call(..., "alreadyHasADefaultValue")
, and am stopped by
throw IllegalArgumentException("Callable expects $arity arguments, but ${args.size} were provided.")
You can call
instead I think. I think there are multiple in some cases, in others you just need to pass null I think to get it to fill in the default.
Look at the bytecode :) View->Show Bytecode