If t is of type T, comparison (t == null) may be true. No warning in this case
This commit is contained in:
@@ -2286,6 +2286,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/SenselessNullInWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("senslessComparisonWithNullOnTypeParameters.kt")
|
||||
public void testSenslessComparisonWithNullOnTypeParameters() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/nullabilityAndAutoCasts/senslessComparisonWithNullOnTypeParameters.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/nullableTypes")
|
||||
|
||||
Reference in New Issue
Block a user