Create from usage: Added Any as fallback to expressions that has no guessable types.
This commit is contained in:
@@ -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()]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user