From 239b9a96a03c4295b3bf2f8723431a337fdb3820 Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Thu, 11 Dec 2014 22:37:10 +0300 Subject: [PATCH] Temporary hack to compile 'kotlin' --- .../org/jetbrains/jet/lang/types/CapturedTypeApproximation.kt | 2 ++ 1 file changed, 2 insertions(+) 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 }