Preserve original for constructors of LazySubstitutingClassDescriptor
We would like DeclarationDescriptor.getOriginal() to always point to a (preferably unique) unsubstituted descriptors for the given possibly substituted descriptor. In case of LazySubstitutingClassDescriptor (which can be observed for nested generic Java classes), this invariant was broken, because 'getOriginal()' for constructors of substituted class returned a copy created for this particular substituted class.
This commit is contained in:
+1
-1
@@ -463,7 +463,7 @@ open class WrappedClassConstructorDescriptor(
|
||||
kind: CallableMemberDescriptor.Kind,
|
||||
copyOverrides: Boolean
|
||||
): ClassConstructorDescriptor {
|
||||
TODO("not implemented")
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun getModality() = Modality.FINAL
|
||||
|
||||
Reference in New Issue
Block a user