[NI] Discriminate integer literal types as they are less specific

Plus simplify code in `ResultTypeResolver` a bit
This commit is contained in:
Mikhail Zarechenskiy
2019-03-26 11:07:20 +03:00
parent e01cac4c3d
commit a50cc99b01
7 changed files with 61 additions and 16 deletions
@@ -14127,6 +14127,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/numbers/intValuesOutOfRange.kt");
}
@TestMetadata("numberAsUnionAndIntersection.kt")
public void testNumberAsUnionAndIntersection() throws Exception {
runTest("compiler/testData/diagnostics/tests/numbers/numberAsUnionAndIntersection.kt");
}
@TestMetadata("numbersInSimpleConstraints.kt")
public void testNumbersInSimpleConstraints() throws Exception {
runTest("compiler/testData/diagnostics/tests/numbers/numbersInSimpleConstraints.kt");