Do not force overridden descriptors computation

Currently 'overriddenDescriptors' of substituted function is lazy
and in most cases it's unnecessary to compute it
(it's enough to use the same field from 'original')
This commit is contained in:
Denis Zharkov
2016-02-03 12:05:53 +03:00
parent 9e3d381eb3
commit 18e7272a1e
7 changed files with 17 additions and 9 deletions
@@ -142,6 +142,8 @@ object BuiltinMethodsWithSpecialGenericSignature {
@JvmStatic
fun CallableMemberDescriptor.getSpecialSignatureInfo(): SpecialSignatureInfo? {
if (name !in ERASED_VALUE_PARAMETERS_SHORT_NAMES) return null
val builtinFqName = firstOverridden { it is FunctionDescriptor && it.hasErasedValueParametersInJava }?.fqNameOrNull()
?: return null