[FE 1.0] Report USELESS_IS_CHECK if is expression is always false
^KT-47684 Fixed
This commit is contained in:
committed by
teamcityserver
parent
785e2f862c
commit
7b5a5f5682
+6
@@ -3609,6 +3609,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/cast/FlexibleTargetType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("isAlwaysFalse.kt")
|
||||
public void testIsAlwaysFalse() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/cast/isAlwaysFalse.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IsErasedAllowForDerivedWithOneSubstitutedAndOneSameGeneric.kt")
|
||||
public void testIsErasedAllowForDerivedWithOneSubstitutedAndOneSameGeneric() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user