diff --git a/core/descriptors/src/org/jetbrains/jet/lang/types/CapturedTypeApproximation.kt b/core/descriptors/src/org/jetbrains/jet/lang/types/CapturedTypeApproximation.kt index 94e23bec8c5..8281c44262f 100644 --- a/core/descriptors/src/org/jetbrains/jet/lang/types/CapturedTypeApproximation.kt +++ b/core/descriptors/src/org/jetbrains/jet/lang/types/CapturedTypeApproximation.kt @@ -76,6 +76,8 @@ public fun approximateCapturedTypesIfNecessary(typeProjection: TypeProjection?): if (typeProjection == null) return null val type = typeProjection.getType() + //todo temporary hack to compile 'kotlin' + if (type is LazyType) return typeProjection if (!TypeUtils.containsSpecialType(type, { it.isCaptured() })) { return typeProjection }