IDEA-146649 "Redundant type cast" warning expected when casting primitive to the same type

GitOrigin-RevId: 1ee7941e5f78e525a3edd92f539e21bd720b096e
This commit is contained in:
Tagir Valeev
2019-04-23 13:16:01 +03:00
committed by intellij-monorepo-bot
parent bfde8b00af
commit bec9b23504
3 changed files with 17 additions and 4 deletions
@@ -0,0 +1,7 @@
import org.jetbrains.annotations.*;
class A {
void method() {
int v = (int)(<warning descr="Casting '1L' to 'long' is redundant">long</warning>)1L;
}
}