Create from usage: Added Any as fallback to expressions that has no guessable types.

This commit is contained in:
Jack Zhou
2013-04-19 18:58:59 -04:00
parent 9a079ae621
commit 6de37f4c85
@@ -142,6 +142,11 @@ public class CreateMethodFromUsageFix extends CreateFromUsageFixBase {
}
}
}
if (types.isEmpty()) {
types.add(KotlinBuiltIns.getInstance().getAnyType());
}
return cachedTypeCandidates = types.toArray(new JetType[types.size()]);
}