Create from usage: Fixed a warning.

This commit is contained in:
Jack Zhou
2013-04-08 22:33:18 -04:00
parent 870dbd7e86
commit f17b93c949
@@ -549,6 +549,7 @@ public class CreateMethodFromUsageFix extends CreateFromUsageFixBase {
JetTypeReference returnTypeRef = func.getReturnTypeRef();
if (returnTypeRef != null) {
assert returnTypeExpression != null;
JetType[] returnTypeOptions = returnTypeExpression.getOptions();
String[] returnTypeOptionStrings = returnTypeExpression.getOptionStrings();
assert returnTypeOptions.length == returnTypeOptionStrings.length;