redundant cast: compare base types for anonymous classes

This commit is contained in:
Anna Kozlova
2016-03-11 10:51:37 +01:00
parent ad19b800f9
commit 320904a20f
3 changed files with 17 additions and 1 deletions
@@ -0,0 +1,7 @@
class Y {
Y(int x) {}
Y bar() {
return new Y((<warning descr="Casting '1' to 'int' is redundant">int</warning>) 1) {};
}
}