Disconnect loops between upper bounds of type parameters
#KT-9759 Fixed
This commit is contained in:
+6
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.kotlin.serialization.deserialization.descriptors
|
||||
|
||||
import org.jetbrains.kotlin.descriptors.SourceElement
|
||||
import org.jetbrains.kotlin.descriptors.SupertypeLoopChecker
|
||||
import org.jetbrains.kotlin.descriptors.annotations.AnnotationWithTarget
|
||||
import org.jetbrains.kotlin.descriptors.annotations.Annotations
|
||||
import org.jetbrains.kotlin.descriptors.impl.AbstractLazyTypeParameterDescriptor
|
||||
@@ -52,4 +53,9 @@ class DeserializedTypeParameterDescriptor(
|
||||
c.typeDeserializer.type(it, Annotations.EMPTY)
|
||||
}
|
||||
}
|
||||
|
||||
override fun getSupertypeLoopChecker() = SupertypeLoopChecker.EMPTY
|
||||
|
||||
override fun reportCycleError(type: KotlinType) = throw IllegalStateException(
|
||||
"There should be no cycles for deserialized type parameters, but found for: $this")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user