Remove wrong assertion

This commit is contained in:
Denis Zharkov
2016-01-25 16:42:09 +03:00
parent 29c24267fa
commit e69b115d9a
4 changed files with 36 additions and 1 deletions
@@ -522,7 +522,6 @@ public class TypeUtils {
}
@Nullable
public static TypeParameterDescriptor getTypeParameterDescriptorOrNull(@NotNull KotlinType type) {
assert !(type instanceof CapturedType) : "Type should be non-captured " + type;
if (type.getConstructor().getDeclarationDescriptor() instanceof TypeParameterDescriptor) {
return (TypeParameterDescriptor) type.getConstructor().getDeclarationDescriptor();
}