DelegatingType extracted

This commit is contained in:
Andrey Breslav
2014-02-26 15:08:49 +04:00
parent a3075f90db
commit 131d6ddd3d
6 changed files with 85 additions and 57 deletions
@@ -64,7 +64,7 @@ public class QuickFixUtil {
if (!(descriptor instanceof CallableDescriptor)) return null;
JetType type = ((CallableDescriptor) descriptor).getReturnType();
if (type instanceof DeferredType) {
type = ((DeferredType) type).getActualType();
type = ((DeferredType) type).getDelegate();
}
return type;
}