Check for type parameter supertypes in primitive numeric comparisons

This commit is contained in:
Dmitry Petrov
2018-02-09 12:40:52 +03:00
parent e5e583e3e5
commit 5a85bf36a5
4 changed files with 185 additions and 1 deletions
@@ -1058,6 +1058,12 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase {
doTest(fileName);
}
@TestMetadata("typeParameterWithPrimitiveNumericSupertype.kt")
public void testTypeParameterWithPrimitiveNumericSupertype() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.kt");
doTest(fileName);
}
@TestMetadata("whenByFloatingPoint.kt")
public void testWhenByFloatingPoint() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.kt");