Introduce kotlin.jvm.internal.Lambda, superclass for all lambdas

It has its arity precomputed, as opposed to the future KFunctionImpl inheriting
from FunctionImpl, for which the computation of arity can take some time and so
it shouldn't be passed in the constructor and saved as a field
This commit is contained in:
Alexander Udalov
2015-05-20 17:40:45 +03:00
parent 86ecb423f6
commit 27ed098467
5 changed files with 38 additions and 5 deletions
@@ -21,4 +21,4 @@ import kotlin.jvm.internal.FunctionImpl
/**
* @suppress
*/
public abstract class KFunctionImpl<out R> : FunctionImpl<R>()
public abstract class KFunctionImpl<out R> : FunctionImpl()