Recursion-tolerant notnull lazy values

This commit is contained in:
Andrey Breslav
2013-09-26 12:59:31 -07:00
parent bbdff45246
commit 51dfdf795f
3 changed files with 51 additions and 9 deletions
@@ -49,6 +49,7 @@ import org.jetbrains.jet.lang.resolve.scopes.*;
import org.jetbrains.jet.lang.types.JetType;
import org.jetbrains.jet.lang.types.TypeConstructor;
import org.jetbrains.jet.lang.types.TypeUtils;
import org.jetbrains.jet.utils.WrappedValues;
import java.util.*;
@@ -395,6 +396,12 @@ public class LazyClassDescriptor extends ClassDescriptorBase implements LazyDesc
}
}
},
new Computable<Object>() {
@Override
public Object compute() {
return WrappedValues.unescapeExceptionOrNull(Collections.emptyList());
}
},
new Consumer<Collection<JetType>>() {
@Override
public void consume(@NotNull Collection<JetType> supertypes) {