Fix toString() and reflectLambda() for lambdas with generic types in signatures

#KT-10771 Fixed
This commit is contained in:
Alexander Udalov
2016-06-08 19:32:11 +03:00
parent dc2972d99e
commit 59342000ae
6 changed files with 74 additions and 17 deletions
@@ -45,8 +45,8 @@ fun <R> Function<R>.reflect(): KFunction<R>? {
val proto = ProtoBuf.Function.parseFrom(input, JvmProtoBufUtil.EXTENSION_REGISTRY)
val moduleData = javaClass.getOrCreateModule()
val context = DeserializationContext(
moduleData.deserialization, nameResolver, moduleData.module,
typeTable = TypeTable(proto.typeTable), containerSource = null, parentTypeDeserializer = null, typeParameters = listOf()
moduleData.deserialization, nameResolver, moduleData.module, TypeTable(proto.typeTable),
containerSource = null, parentTypeDeserializer = null, typeParameters = proto.typeParameterList
)
val descriptor = MemberDeserializer(context).loadFunction(proto)
@Suppress("UNCHECKED_CAST")