Revert "[NI] Take into account captured types for type depth computation"
This reverts commit 383c2d1bff.
It seems this commit causes problems with bootstraping, so it'll be
investigated and refined later
This commit is contained in:
@@ -470,9 +470,6 @@ internal fun UnwrappedType.typeDepth() =
|
||||
|
||||
internal fun SimpleType.typeDepth(): Int {
|
||||
if (this is TypeUtils.SpecialType) return 0
|
||||
if (this is NewCapturedType) {
|
||||
return constructor.projection.type.unwrap().typeDepth()
|
||||
}
|
||||
|
||||
val maxInArguments = arguments.asSequence().map {
|
||||
if (it.isStarProjection) 1 else it.type.unwrap().typeDepth()
|
||||
|
||||
Reference in New Issue
Block a user