TypeParameterDescriptor propagation to CapturedTypeConstructor

This commit is contained in:
Michael Bogdanov
2016-01-05 12:47:31 +03:00
parent 0bcae4e0c0
commit 833cdb0706
4 changed files with 13 additions and 10 deletions
@@ -84,7 +84,7 @@ class CapturedTypeApproximationTest() : KotlinLiteFixture() {
fun createTestSubstitutor(testSubstitution: Map<TypeParameterDescriptor, TypeProjection>): TypeSubstitutor {
val substitutionContext = testSubstitution.map {
val (typeParameter, typeProjection) = it
typeParameter.typeConstructor to TypeProjectionImpl(createCapturedType(typeProjection))
typeParameter.typeConstructor to TypeProjectionImpl(createCapturedType(typeProjection, typeParameter))
}.toMap()
return TypeSubstitutor.create(substitutionContext)
}