IDEA-CR-36626 IDEA-197773 Groovy type inference performance fix

This commit is contained in:
alexey.afanasiev
2018-09-10 13:41:51 +03:00
parent 29020fdfa5
commit f5aceb8f81
2 changed files with 1 additions and 4 deletions

View File

@@ -296,9 +296,6 @@ public class TypesUtil implements TypeConstants {
return true;
}
lType = optionalUnbox(lType);
rType = optionalUnbox(rType);
return TypeConversionUtil.isAssignable(lType, rType);
}

View File

@@ -130,7 +130,7 @@ class GrAssignAutoTest extends GrHighlightingTestBase {
''',
vectorProduct(types, types),
['int -> double[]', 'short -> int[]', 'short -> double[]', 'byte -> int[]', 'byte -> double[]'],
['Integer[] -> int[]', 'Integer[] -> double[]', 'int[] -> double[]', 'int[] -> Integer[]']
['Integer[] -> int[]', 'Integer[] -> double[]', 'int[] -> double[]', 'int[] -> Integer[]', 'short -> Integer[]', 'byte -> Integer[]']
}
void testReturnAssignValue() {