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:
Mikhail Zarechenskiy
2018-12-12 17:28:51 +03:00
parent fdf4f02dde
commit 1d69f35f27
5 changed files with 0 additions and 62 deletions
@@ -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()